Re: PQescapeBytea* version for parameters

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Gregory Stark <stark(at)enterprisedb(dot)com>, PostgreSQL-development Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: PQescapeBytea* version for parameters
Date: 2007-07-11 16:15:18
Message-ID: 200707111615.l6BGFIF15530@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
> Gregory Stark <stark(at)enterprisedb(dot)com> writes:
> > Shouldn't it escape ' as \' and not '' if standard_conforming_strings is
> > false?
>
> No. That's always worked and there's no reason to change it.

'' is more standard than \' so we always use ''.

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Joshua D. Drake 2007-07-11 16:17:44 Re: doubt
Previous Message Tom Lane 2007-07-11 15:59:13 Re: minor compiler warning on OpenBSD