Thread: BUG #2184: Insertion problem

BUG #2184: Insertion problem

From
"Surya"
Date:
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.

Re: BUG #2184: Insertion problem

From
Bruce Momjian
Date:
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