Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Perl Misc (http://www.velocityreviews.com/forums/f67-perl-misc.html)
-   -   perl DB (pgsql)I: problems searching text strings with ' symbol (es d'ambrose) (http://www.velocityreviews.com/forums/t902598-perl-db-pgsql-i-problems-searching-text-strings-with-symbol-es-dambrose.html)

Filippo 04-07-2007 11:30 PM

perl DB (pgsql)I: problems searching text strings with ' symbol (es d'ambrose)
 
hello,

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/
site/lib/DBD/
PgPP.pm line 730

I have no problems inserting text

How can I solve it?

p.s.
I really need LIKE and %


Filippo 04-08-2007 12:54 AM

Re: perl DB (pgsql)I: problems searching text strings with ' symbol (es d'ambrose)
 
On 8 Apr, 01:30, "Filippo" <filippo2...@virgilio.it> wrote:

(snip)

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.