Re: [SQL] ' escape - Mailing list pgsql-sql

From jwieck@debis.com (Jan Wieck)
Subject Re: [SQL] ' escape
Date
Msg-id m0znJQL-000EBPC@orion.SAPserv.Hamburg.dsh.de
Whole thread Raw
In response to Re: [SQL] ' escape  (Bruce Momjian <maillist@candle.pha.pa.us>)
Responses Re: [SQL] ' escape  (Herouth Maoz <herouth@oumail.openu.ac.il>)
List pgsql-sql
> >     Hmmm - bug or feature - dunno. But telling
> >
> >         ... DEFAULT 'Something with '''' into' ...
> >
> >     works pretty good and as I expected it, results in one single
> >     quoute.
>
> I see the problem here:
>
> test=> create table test33 (a int,x char(10) default 'x\'y');
> ERROR:  parser: parse error at or near "y"

    But

    create table ... default 'x\'\'y');

    does. Whenever something around quotes doesn't work, I first
    try to double them.


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) #

pgsql-sql by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [SQL] ' escape
Next
From: Herouth Maoz
Date:
Subject: Re: [SQL] ' escape