Bug#422209: "Unknown named parameter" when binding positional parameters

Vickenty Fesunov kent at comintern.ru
Fri May 4 09:34:08 UTC 2007


Package: libdbd-sqlite3-perl
Version: 1.13-1.1

After the upgrade from Sarge to Etch, my perl script started carping
"Unknown named parameter" to any SQL statement involving positional
parameters (sic).

I failed to write code to reproduce bug at that time, but found out that
the patch below solved the problem.

Earlier today, when preparing to file this bug report, I've found an
upstream bug[1], which seems relevant. I succeeded in reproducing the
bug on another machine with the test code from that bug report.

[1] http://rt.cpan.org/Public/Bug/Display.html?id=23242

diff -u libdbd-sqlite3-perl-1.13/dbdimp.c libdbd-sqlite3-perl-1.13-fixed/dbdimp.c
--- libdbd-sqlite3-perl-1.13/dbdimp.c   2007-04-20 12:30:36.000000000 +0400
+++ libdbd-sqlite3-perl-1.13-fixed/dbdimp.c     2007-04-20 12:36:20.000000000 +0400
@@ -440,7 +440,7 @@
                                 int is_inout, IV maxlen)
 {
     int pos;
-    if (!SvIOK(param)) {
+    if (!SvIOKp(param)) {
         int len;
         char *paramstring;
         paramstring = SvPV(param, len);

-- 
Best regards,	  kent at comintern.ru         My GPG key is  () ASCII ribbon
Vickenty Fesunov  http://kent.comintern.ru  0x546defd6     /\ against HTML mail




More information about the pkg-perl-maintainers mailing list