Subject: | two hyphens in VALUES item results in "Mismatched single quote before" |
Date: | Thu, 25 Nov 2010 09:59:02 +0800 |
To: | bug-DBD-AnyData [...] rt.cpan.org |
From: | "Anthony G. Nickolayev" <dodger [...] burnet.ru> |
Hi!
This simple script:
----------------------------------------------
#!/usr/bin/perl -w
use DBI;
my $dbh = DBI->connect('dbi:AnyData(RaiseError=>1):');
$dbh->func
(
'msg_list',
'ARRAY',
(
[
'id'
]
),
'ad_import'
);
$dbh->do("INSERT INTO msg_list (id) VALUES ('--');");
-----------------------------------------------
Has caused an error:
-----------------------------------------------
Mismatched single quote before: 'INSERT INTO msg_list (id) VALUES ('' at /usr/local/lib/perl5/site_perl/5.8.8/SQL/Statement.pm line 86
DBD::AnyData::db do failed: Mismatched single quote before: 'INSERT INTO msg_list (id) VALUES ('' at /usr/local/lib/perl5/site_perl/5.8.8/SQL/Statement.pm line 86
[for Statement "INSERT INTO msg_list (id) VALUES ('--');"] at ./test.pl line 18.
---------------------------------------
Modules:
* AnyData-0.10
* DBD-AnyData-0.110
* DBI-1.615
* SQL-Statement-1.31
OS: FreeBSD 8.0-RELEASE #0
----
--
Anthony G. Nickolayev
telematic services engineer
JSC "AC Mobiltelecom"
+7-(3012)-29-70-21
dodger@burnet.ru