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> |
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.