From: Joe Conway <joseph.conway@home.com>
To: Megalex <megalex@klanomega.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: problems with single quotes..
Date: Sun, 02 Dec 2001 06:52:09 -0800
Message-ID: <3C0A4019.6040004@home.com> (raw)
References: <20011201182212.R74581-100000@megazone23.bigpanda.com>
<000b01c07680$29fb2430$0301a8c0@klanomega.com>
Megalex wrote:
> ok.. here is my deal..
>
> everytime i try to run an insert and my text contains '\'
> it fails..
>
> an sql example would be.
>
> Insert Into table(userID,FirstName,LastName) values(1,'''\''','test')
> and i get this message...
>
> Error while executing the query; ERROR: parser: parse error at or near
> "test"
>
> how can i fix this??
It isn't clear to me what literal you're trying to insert, but it looks
like it's either:
vsreg_192=# select '\'\'\\\'\'';
?column?
----------
''\''
(1 row)
or
vsreg_192=# select '\'\\\'';
?column?
----------
'\'
(1 row)
HTH,
Joe
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: joseph.conway@home.com, megalex@klanomega.com
Subject: Re: problems with single quotes..
In-Reply-To: <3C0A4019.6040004@home.com>
* 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