Skip Menu |
 

This queue is for tickets about the DBD-mysql CPAN distribution.

Report information
The Basics
Id: 103306
Status: resolved
Priority: 0/
Queue: DBD-mysql

People
Owner: Nobody in particular
Requestors: anotheroneackap [...] gmail.com
Cc: pali [...] cpan.org
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: fetchrow_hashref and fetchall_hashref generates errors #2000 when in async mode
Date: Sat, 4 Apr 2015 17:14:09 +0300
To: bug-DBD-mysql [...] rt.cpan.org
From: Ackap AnotherOne <anotheroneackap [...] gmail.com>
Download (untitled) / with headers
text/plain 702b
I had it on DBD::mysql v.4.021 and perl v5.14.2) built for x86_64-linux-gnu-thread-multi, uname -a is Linux anotheroneackap 2.6.32-042stab094.7 #1 SMP Wed Oct 22 12:43:21 MSK 2014 x86_64 GNU/Linux See discussion in https://github.com/jhthorsen/mojo-mysql/issues/1 Briefly: The call to fetchrow_hashref activates error 2000. This is becase DBD::mysql calls *mysql_async_ready* and *mysql_async_result* for each call to *fetchrow_hashref* and *fetchall_hashref*. It does not do the same check for *fetchrow_arrayref* and *fetchall_arrayref*. This issue is not directed to the correct project. If you need a fix comment out lines 854-881 in lib/DBD/mysql.pm of the latest 4.031 version of DBD::mysql.
Download (untitled) / with headers
text/plain 188b
Hi, thanks for your report. Please see my comment at https://github.com/jhthorsen/mojo-mysql/issues/1#issuecomment-90697780 -- I have a hard time creating a test for the issue. -- Michiel
Download (untitled) / with headers
text/plain 881b
On Sob Apr 04 10:14:21 2015, anotheroneackap@gmail.com wrote: Show quoted text
> I had it on DBD::mysql v.4.021 and perl v5.14.2) built for > x86_64-linux-gnu-thread-multi, uname -a is > Linux anotheroneackap 2.6.32-042stab094.7 #1 SMP Wed Oct 22 12:43:21 MSK > 2014 x86_64 GNU/Linux > > See discussion in https://github.com/jhthorsen/mojo-mysql/issues/1 > > Briefly: > > The call to fetchrow_hashref activates error 2000. > This is becase DBD::mysql calls *mysql_async_ready* and > *mysql_async_result* for > each call to > *fetchrow_hashref* and *fetchall_hashref*. > It does not do the same check for *fetchrow_arrayref* and > *fetchall_arrayref*. > > This issue is not directed to the correct project. > If you need a fix comment out lines 854-881 in lib/DBD/mysql.pm of the > latest 4.031 version of DBD::mysql.
Fix is in this pull request: https://github.com/perl5-dbi/DBD-mysql/pull/124


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.