Re: PQescapeString

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Mark Thomas <thomas(at)pbegames(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: PQescapeString
Date: 2002-06-08 15:36:19
Message-ID: 13905.1023550579@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Mark Thomas <thomas(at)pbegames(dot)com> writes:
> ... I end up with a query string that looks like:
> INSERT INTO "some_table" (ttext)
> VALUES ('This is a test of postgresql''s escaping mechanism')

That should result in inserting

This is a test of postgresql's escaping mechanism

> Subsequently I do:

> SELECT ttext from "some_table";

> This is a test of postgresql''s escaping mechanism

This is hard to believe. The returned string shouldn't have the
doubled quote. You're going to have to give more details about
what you're doing.

regards, tom lane

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Mark Thomas 2002-06-08 17:29:15 Re: PQescapeString
Previous Message Gyan Kapur 2002-06-08 05:14:40 Dear sirs,