pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Keith Gray <keith@heart.com.au>
To: PostgreSQL <pgsql-sql@postgresql.org>
Subject: Escape Quotes
Date: Fri, 11 May 2001 11:11:46 +1000
Message-ID: <3AFB3C52.315C48F0@heart.com.au> (raw)

When using apostrophies the PostgreSQL string seems to like 
an escape character as follows:


	update client set code = 'O\'SHEA' where clientid = 2;


The ANSI-92 standard seems to suggest that this could/should 
be handled by 

<quote> ::= '
<quote symbol> ::= <quote><quote>

	update client set code = 'O''SHEA' where clientid = 2;


Is it possible to get/configure PostgreSQL to handle <quote><quote>
as <quote> within a dleimited string?


Keith Gray



view thread (6+ messages)  latest in thread

Message-ID: <3AFB3C52.315C48F0@heart.com.au>
Permalink:  ../3AFB3C52.315C48F0@heart.com.au/
Also on:    postgresql.org/message-id/3AFB3C52.315C48F0@heart.com.au

 · 

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-sql@postgresql.org
  Cc: keith@heart.com.au
  Subject: Re: Escape Quotes
  In-Reply-To: <3AFB3C52.315C48F0@heart.com.au>
  References: <3AFB3C52.315C48F0@heart.com.au>

* 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