David Wheeler wrote:

My fix was in DBD::Pg 1.11. What version are you using, Crist�v�o? If my
patch isn't working, we definitely need to figure something out.

Hello David,

I'm using DBD::Pg 1.13 from CPAN, PostgreSQL 7.3b2 on FreeBSD 4.7.

I get the following error when I try to insert the data:

at ./addimg.pl line 23.ed: ERROR: parser: unterminated quoted string at or near "'PNG

Apparently the error routine stopped printing at the first NULL from the file. The data is inserted like so:

my $ins = $dbh->prepare ('INSERT INTO binfile (size, data) VALUES (?, ?)');
$ins->execute ($datasize, $data);

Thanks.

Crist�v�o


Reply via email to