Subject: | FYI: error with placeholders in CONCAT() function |
Date: | Fri, 8 Mar 2013 23:22:42 +0900 |
To: | bug-DBD-Pg [...] rt.cpan.org |
From: | Ian Lawrence Barwick <barwick [...] gmail.com> |
DBD::Pg version: 2.19.3
PostgreSQL version: 9.2.3
-----------------------------------------------------
use strict;
use DBI;
my $dbh = DBI->connect(
'dbi:Pg:dbname=testdb', 'barwick', '',
{
PrintError => 1,
RaiseError => 0
}
);
my $sth = $dbh->prepare(q|SELECT CONCAT('foo', ?)|);
$sth->execute('bar');
-----------------------------------------------------
Executing the above produces the following error
DBD::Pg::st execute failed: ERROR: could not determine data type of
parameter $1 at concat.pl line 17.