Re: Text data type doesn't accept newlines?

From: Randall Perry <rgp(at)systame(dot)com>
To: Gordan Bobic <gordan(at)freeuk(dot)com>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: Text data type doesn't accept newlines?
Date: 2001-06-06 13:24:19
Message-ID: B743A742.9B79%rgp@systame.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Just checked the Pg docs, don't see a quote function. What is it part of?

> 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
>
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>

--
Randy Perry
sysTame
Mac Consulting/Sales

phn 561.589.6449
mobile email help(at)systame(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andrew Sullivan 2001-06-06 13:27:08 Re: Turning on/off the logfile
Previous Message Andrew Gould 2001-06-06 13:23:03 Re: pg_dump problem