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,     [EMAIL PROTECTED]         My GPG key is  () ASCII ribbon
Vickenty Fesunov  http://kent.comintern.ru  0x546defd6     /\ against HTML mail


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to