Re: [BUGS] BUG #2171: Differences compiling plpgsql in

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: [BUGS] BUG #2171: Differences compiling plpgsql in
Дата
Msg-id 1138916707.5342.41.camel@swithin
обсуждение исходный текст
Ответ на Re: [BUGS] BUG #2171: Differences compiling plpgsql in  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches
On Thu, 2006-02-02 at 16:41 -0500, Tom Lane wrote:
> Andrew Dunstan <andrew@dunslane.net> writes:
> > As a matter of curiosity, why does ecpg handle dollar quoting like that?
> > psql, for example, happily just passes a dollar quoted string through to
> > the backend, without any need to convert it to a conventionally quoted
> > string.
>
> Doesn't ecpg have to convert string literals into C string constants?
>


I believe so. But doesn't it do that by surrounding them with double
quotes, and escaping embedded double quotes (and now newlines) ? The
backend still needs to see what it will accept as a quote delimiter,
surely.

cheers

andrew


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [BUGS] BUG #2171: Differences compiling plpgsql in
Следующее
От: Stephen Frost
Дата:
Сообщение: Re: pg_restore COPY error handling