Felix E. Klee
20 years ago
With DBD::Pg 1.32, DBI 1.43 the code below works flawlessly, i.e. the
field "ngdesc" where ng = 'x.a' is updated to read "'?".
However, with DBD::Pg 1.41, DBI 1.46, I get the error message
"DBD::Pg::db do failed: execute called with an unbound placeholder at
./qqq line 7.". Am I doing something wrong or is this a bug?
#!/usr/bin/perl -w
use strict;
use DBI;
my $dbh = DBI->connect("dbi:Pg:dbname=sandpit", '', '',
{RaiseError => 1, AutoCommit => 1, PrintError => 0}) or
die "Cannot connect to database: $DBI::errstr";
$dbh->do("UPDATE qqqmlnggates SET ngdesc = '\\'?' WHERE ng = 'x.a'");
field "ngdesc" where ng = 'x.a' is updated to read "'?".
However, with DBD::Pg 1.41, DBI 1.46, I get the error message
"DBD::Pg::db do failed: execute called with an unbound placeholder at
./qqq line 7.". Am I doing something wrong or is this a bug?
#!/usr/bin/perl -w
use strict;
use DBI;
my $dbh = DBI->connect("dbi:Pg:dbname=sandpit", '', '',
{RaiseError => 1, AutoCommit => 1, PrintError => 0}) or
die "Cannot connect to database: $DBI::errstr";
$dbh->do("UPDATE qqqmlnggates SET ngdesc = '\\'?' WHERE ng = 'x.a'");
--
Felix E. Klee
Felix E. Klee