Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 278920 - dev-perl/DBD-mysql-4.00.5 reports result set of 2^64-1 rows when using stored procedures
Summary: dev-perl/DBD-mysql-4.00.5 reports result set of 2^64-1 rows when using stor...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-24 12:07 UTC by Nico Rittner
Modified: 2009-08-26 23:17 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nico Rittner 2009-07-24 12:07:55 UTC
if i use stored procedures in a select statement,
$sth->rows() reports a result set of 
18446744073709551615 ( 2^64 - 1) rows.
a following ->fetch returns undef.
the same statement with the mysql cli
works fine:

mysql> select core.levenshtein("otto","atta");
+---------------------------------+
| core.levenshtein("otto","atta") |
+---------------------------------+
|                               2 |
+---------------------------------+
1 row in set (0.00 sec)

mysql>

the stored proc. 'levenshtein' can be downloaded here:
http://codejanitor.com/wp/2007/02/10/levenshtein-distance-as-a-mysql-stored-function/

also tried different sql_modes.

perl version is v5.8.8 
DBD-mysql versions is 4.00.5

necronomicon etc # cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 15
model           : 2
model name      : Intel(R) Pentium(R) 4 CPU 3.00GHz
stepping        : 9
cpu MHz         : 2992.585
cache size      : 512 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 2
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe cid
bogomips        : 5976.88

mySQL Version is 5.0.70



Reproducible: Always

Steps to Reproduce:
1. $sth=$db->prepare("select core.levenshtein('otto','atta')");
2. $sth->execute();
3. print $sth->rows();

Actual Results:  
2^64 - 1 rows reported by $sth->rows();
no result set ( ->fetch returns undef )


Expected Results:  
mysql> select core.levenshtein("otto","atta");
+---------------------------------+
| core.levenshtein("otto","atta") |
+---------------------------------+
|                               2 |
+---------------------------------+
1 row in set (0.00 sec)
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-08-26 23:17:31 UTC
please test with the newer DBD-mysql 4.01.2 and reopen if needed.