pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #7505: Backslash escaping not necessary
Date: Sun, 26 Aug 2012 09:04:45 +0200
Message-ID: <k1chqc$2cp$1@ger.gmane.org> (raw)
In-Reply-To: <E1T502x-0004da-K3@wrigleys.postgresql.org>
References: <E1T502x-0004da-K3@wrigleys.postgresql.org>

ovadyaj@gmail.com wrote on 24.08.2012 21:59:
> The following bug has been logged on the website:
>
> Bug reference:      7505
> Logged by:          Jeff Ovadya
> Email address:      ovadyaj@gmail.com
> PostgreSQL version: 9.1.4
> Operating system:   PostgreSQL 9.1.4, compiled by Visual C++ build 150
> Description:
>
> Also noticed similar issue escaping single quotes: Backslash will not work
> to escape, but doubling up the quotes works.

Which is the correct behaviour and conforms to the SQL standard (and nearly all other DBMS behave the same way)

But if you want to use the backslash to escape single quotes check out the parameter
"standard_conforming_strings" which controls this behaviour:

http://www.postgresql.org/docs/9.1/static/runtime-config-compatible.html#GUC-STANDARD-CONFORMING-STR...








view thread (2+ messages)

Message-ID: <k1chqc$2cp$1@ger.gmane.org>
Permalink:  ../k1chqc$2cp$1@ger.gmane.org/
Also on:    postgresql.org/message-id/k1chqc$2cp$1@ger.gmane.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: spam_eater@gmx.net
  Subject: Re: BUG #7505: Backslash escaping not necessary
  In-Reply-To: <k1chqc$2cp$1@ger.gmane.org>
  References: <E1T502x-0004da-K3@wrigleys.postgresql.org> <k1chqc$2cp$1@ger.gmane.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox