From: Herouth Maoz <herouth@oumail.openu.ac.il>
To: Brian Baquiran <brianb@evoserve.com>
To: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] string containing (')
Date: Mon, 22 Mar 1999 14:35:12 +0200
Message-ID: <l03110703b31be8bf8484@[147.233.148.111]> (raw)
In-Reply-To: <36F3C76D.42F9EAFD@evoserve.com>
References: <199903201248.HAA19314@candle.pha.pa.us>
At 18:06 +0200 on 20/03/1999, Brian Baquiran wrote:
> >
> > > HI!
> > > Can anyone help,
> > > I want to store a string into a relation that might contain an apostrophe
> > > ('). Is there anyway around this or can I not store such strings.
> > > Thanks for your help
> >
> > '\''
>
> I've always thought the proper way was to use 2 quotes ('').
It is the proper way, as far as compatibility to standard SQL is concerned.
Both methods are supported by PostgreSQL, though.
I have a certain grievance against PostgreSQL and its escaping mechanism,
which makes scripts written in standard SQL produce wrong results if they
have backslashes in them.
Perhaps there should be a switch, SET COMPATIBILITY or something, which
disables incompatible parses from taking place, and allows using legacy
script with little concern for the content of the strings.
Herouth
--
Herouth Maoz, Internet developer.
Open University of Israel - Telem project
http://telem.openu.ac.il/~herutma
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: herouth@oumail.openu.ac.il, brianb@evoserve.com
Subject: Re: [SQL] string containing (')
In-Reply-To: <l03110703b31be8bf8484@[147.233.148.111]>
References: <199903201248.HAA19314@candle.pha.pa.us> <l03110703b31be8bf8484@[147.233.148.111]>
* 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