perl DB (pgsql)I: problems searching text strings with ' symbol (es d'ambrose)
if I try to SQL SELECT LIKE for a string containing single quote:
my $name = $dbh->quote(qq/d'ambr%/);
SELECT name FROM mytable WHERE name LIKE $name
I get this error
DBD::PgPP::st execute failed: Unknown message type: '*' at C:/Perl/
PgPP.pm line 730
I have no problems inserting text
How can I solve it?
I really need LIKE and %
Re: perl DB (pgsql)I: problems searching text strings with ' symbol (es d'ambrose)
On 8 Apr, 01:30, "Filippo" <filippo2...@virgilio.it> wrote:
solved, it is a DBD::PgPP bug. I changed to DBD::Pg, now it works fine.
|All times are GMT. The time now is 07:05 PM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.