pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephan Szabo <sszabo@megazone23.bigpanda.com>
To: Megalex <megalex@klanomega.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: problems with single quotes..
Date: Sat, 1 Dec 2001 23:48:57 -0800 (PST)
Message-ID: <20011201234829.F77227-100000@megazone23.bigpanda.com> (raw)
In-Reply-To: <000b01c07680$29fb2430$0301a8c0@klanomega.com>

On Thu, 4 Jan 2001, 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??

You'll need to backslash escape that backslash.




view thread (12+ messages)  latest in thread

Message-ID: <20011201234829.F77227-100000@megazone23.bigpanda.com>
Permalink:  ../20011201234829.F77227-100000@megazone23.bigpanda.com/
Also on:    postgresql.org/message-id/20011201234829.F77227-100000@megazone23.bigpanda.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: sszabo@megazone23.bigpanda.com, megalex@klanomega.com
  Subject: Re: problems with single quotes..
  In-Reply-To: <20011201234829.F77227-100000@megazone23.bigpanda.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