Re: Double Backslash example patch

From: David Fetter <david(at)fetter(dot)org>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Double Backslash example patch
Date: 2003-12-16 19:17:11
Message-ID: 20031216191711.GJ19694@fetter.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

On Tue, Dec 16, 2003 at 04:32:37PM +0100, Peter Eisentraut wrote:
> Bruce Momjian wrote:
> > He is reminding folks about double-backslashes in a relivant place
> > --- makes sense to me.
>
> The relevant place would be far below where it already says:
>
> Note: Keep in mind that an escape's leading \ will need to be
> doubled when entering the pattern as an SQL string constant.
>
> So it's already covered.

With all due respect, Peter, it is only implicit in the docs, and that
is not always good enough. An explicit example will help, as
PostgreSQL's quoting system would qualify for an early place on the
'gotchas' page (cf. http://sql-info.de/mysql/gotchas.html) if
PostgreSQL had one.

Cheers,
D
--
David Fetter david(at)fetter(dot)org http://fetter.org/
phone: +1 510 893 6100 cell: +1 415 235 3778

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Dann Corbit 2003-12-16 19:20:02 Re: [HACKERS] [PATCHES] fork/exec patch
Previous Message Michael Meskes 2003-12-16 19:08:44 Re: 7.4 include file conflict

Browse pgsql-patches by date

  From Date Subject
Next Message Alvaro Herrera 2003-12-16 19:31:36 Re: [PATCHES] Double Backslash example patch
Previous Message Peter Eisentraut 2003-12-16 15:32:37 Re: Double Backslash example patch