Re: Text data type doesn't accept newlines?

Gordan Bobic <gordan@freeuk.com>

From: "Gordan Bobic" <gordan@freeuk.com>
To: <pgsql-general@postgresql.org>
Date: 2001-06-06T07:54:31Z
Lists: pgsql-general
Are you using the "quote" function? You have to use it if you are to
guarantee that the data will be acceptable as "input".

$myVar = $myDB -> quote ($myVar)


> I'm using the Pg perl interface. But, think my problem was that I
had
> unescaped single quotes in the string. Added the following to my
code to
> escape them and it works now:
>
>     $self->{errors} =~ s"'"\\'"g;        # escape single quotes