Re: escape - Mailing list pgsql-novice

From Tom Lane
Subject Re: escape
Date
Msg-id 10273.1277649483@sss.pgh.pa.us
Whole thread Raw
In response to Re: escape  ("Jean-Yves F. Barbier" <12ukwn@gmail.com>)
List pgsql-novice
"Jean-Yves F. Barbier" <12ukwn@gmail.com> writes:
> But I also would like to know if there is another way to escape my string

No --- PG has too many string quoting conventions already; we aren't
likely to add more.

What you should be looking for is a way for your code to avoid dealing
directly with the quoting rules.  You might be able to use out-of-line
parameter values, or use a subroutine provided by your PG client library
to convert the string into properly quoted form.  You haven't said what
client-side programming environment you're using so it's hard to be more
specific than that.

            regards, tom lane

pgsql-novice by date:

Previous
From: "Jean-Yves F. Barbier"
Date:
Subject: view and column rights
Next
From: Tom Lane
Date:
Subject: Re: view and column rights