Subject: | DBD-Pg-2.0.0_9: $dbh->quote(URI::URL->new('x')) error |
Date: | Sat, 2 Feb 2008 02:48:29 +0200 |
To: | bug-DBD-Pg [...] rt.cpan.org |
From: | "Alexander Kirpa" <cpan-070814 [...] bilteks.com> |
After upgrade DBD::Pg from DBD-Pg-1.49 to DBD-Pg-2.0.0_9
next script broken:
use strict; use warnings;
use DBI;
use URI::URL;
my $dbh=DBI->connect('DBI:Pg:dbname=test','postgres','', {RaiseError
=> 'on'}) or die "Cannot connect to DB" . $DBI::errstr;
my $URI= URI::URL->new('x');
print "URI=[$URI]\n";
print 'quote=',$dbh->quote($URI),"\n";
-------- result from DBD-Pg-1.49 ----------
URI=[x]
quote='x'
-------- result from DBD-Pg-2.0.0_9 -------
perl z.pl
URI=[x]
Arrays must contain only scalars and other arrays at z.pl line 8.
-------------------------------------------
Best regards,
Alexander Kirpa