Bug confirmed on Linux i386, perl v5.8.5,
SQL::Statement 1.15. The
patch seems to resolve the issue:
$ uname -a
Linux linux 2.6.9-55.0.12.EL #1 Fri Nov 2 10:57:39 EDT 2007 i686 i686
+i386 GNU/Linux
$ grep ^\$VERSION /usr/lib/perl5/site_perl/5.8.5/SQL/Statement.pm
$VERSION = '1.15';
# 669178.pl is identical to source from parent node
$ perl 669178.pl
DBD::CSV::db do failed: Can't use an undefined value as an ARRAY refer
+ence at /usr/lib/perl5/site_perl/5.8.5/SQL/Statement.pm line 1777, <G
+EN3> line 2.
[for Statement "update bug set b = 1 + 1"] at 669178.pl line 9.
[...]
$ sudo patch /usr/lib/perl5/site_perl/5.8.5/SQL/Statement.pm sql-patch
patching file /usr/lib/perl5/site_perl/5.8.5/SQL/Statement.pm
Hunk #1 succeeded at 1762 (offset 5 lines).
$ rm bug
rm: remove regular file `bug'? y
$ perl 669178.pl
$ cat bug
a,b
1,1
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.