Re: BUG #2184: Insertion problem - Mailing list pgsql-bugs

From Bruce Momjian
Subject Re: BUG #2184: Insertion problem
Date
Msg-id 200601192112.k0JLCrV19650@candle.pha.pa.us
Whole thread Raw
In response to BUG #2184: Insertion problem  ("Surya" <Subrhmanyam.surya@wipro.com>)
List pgsql-bugs
Surya wrote:
>
> The following bug has been logged online:
>
> Bug reference:      2184
> Logged by:          Surya
> Email address:      Subrhmanyam.surya@wipro.com
> PostgreSQL version: 8.0
> Operating system:   Windows-2003 Server
> Description:        Insertion problem
> Details:
>
> There is a problem when inserting a single quote in the database.

Use two single-quotes to insert a single-quote:

    'I took it''s money'

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-bugs by date:

Previous
From: Jaime Casanova
Date:
Subject: Re: BUG #2185: function compilation error with "Create [TEMP] table?
Next
From: Bruce Momjian
Date:
Subject: Re: BUG #2186: syntax error in postgresql.conf