From: jwieck@debis.com
To: herouth@oumail.openu.ac.il
Cc: mancinel@univaq.it
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] ' escape
Date: Mon, 7 Dec 1998 22:10:10 +0100 (MET)
Message-ID: <m0zn7v0-000EBPC@orion.SAPserv.Hamburg.dsh.de> (raw)
In-Reply-To: <l0311070cb291ab8e015a@[147.233.159.109]>
> > CREATE TABLE Test (name varchar(128) default 'Something with '' into');
> >
> > Fails. I've tried also other alternatives :
> > default "Something with ' into"
> > default "Something with '' into"
> > default 'Something with \' into'
> > default 'Something with \27 into'
> > default 'Something with \0x27 into'
> >
> > Everything fails.
>
> Interesting bug.
>
> As a workaround, if you really need that default value, define a simple SQL
> function which returns it:
Hmmm - bug or feature - dunno. But telling
... DEFAULT 'Something with '''' into' ...
works pretty good and as I expected it, results in one single
quoute.
Jan
--
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#======================================== jwieck@debis.com (Jan Wieck) #
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: jwieck@debis.com, herouth@oumail.openu.ac.il, mancinel@univaq.it
Subject: Re: [SQL] ' escape
In-Reply-To: <m0zn7v0-000EBPC@orion.SAPserv.Hamburg.dsh.de>
References: <l0311070cb291ab8e015a@[147.233.159.109]> <m0zn7v0-000EBPC@orion.SAPserv.Hamburg.dsh.de>
* 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