Re: Exception using dollar-quoted string

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: Exception using dollar-quoted string
Дата
Msg-id Pine.BSO.4.63.0603241625540.32520@leary.csoft.net
обсуждение исходный текст
Ответ на Re: Exception using dollar-quoted string  ("Fichtenelch" <hillebra@inf.fu-berlin.de>)
Список pgsql-jdbc

On Fri, 24 Mar 2006, Fichtenelch wrote:

> And how are sql commands like
>
> INSERT INTO table VALUES ($t$some text$t$)
>
> passed to the database? In that case dollar quotes are working
> definitely.
>

The JDBC driver executes multiple queries within the same string
(Statement.execute("SELECT 1; SELECT 2")) by splitting them on the
semicolon and executing them separately.  So the difference is that your
plpgsql function body has semicolons while your simple example does not.

Kris Jurka


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

Предыдущее
От: "Fichtenelch"
Дата:
Сообщение: Re: Exception using dollar-quoted string
Следующее
От: Tom Lane
Дата:
Сообщение: gcj has a lot of complaints about 8.1-405 release