Re: PQescapeString

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: PQescapeString
Дата
Msg-id 13905.1023550579@sss.pgh.pa.us
обсуждение исходный текст
Ответ на PQescapeString  (Mark Thomas <thomas@pbegames.com>)
Ответы Re: PQescapeString
Список pgsql-novice
Mark Thomas <thomas@pbegames.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

В списке pgsql-novice по дате отправления:

Предыдущее
От: "Ernesto Gutierrez"
Дата:
Сообщение: Re: Column Name Length
Следующее
От: Mark Thomas
Дата:
Сообщение: Re: PQescapeString