Re: plpgsql function, comment with single quote, braces

Поиск
Список
Период
Сортировка
От David Johnston
Тема Re: plpgsql function, comment with single quote, braces
Дата
Msg-id 85EA3C73-B498-4D36-B2FF-DB51240B00FA@yahoo.com
обсуждение исходный текст
Ответ на Re: plpgsql function, comment with single quote, braces  (Роман Литовченко <roman.lytovchenko@gmail.com>)
Список pgsql-jdbc
On Jan 20, 2012, at 8:33, Роман Литовченко <roman.lytovchenko@gmail.com> wrote:

>> Otherwise what's the problem if you just deactivate escape processing?
>
> Because it is alogical.
> I follow Postgresql documentation for writing sql code. I want to
> write comments in functions. I want to write braces in literals.
>
> Сan one of the developers answer me or register this bug?
>

Speaking without full knowledge here but...

This has nothing to do with PostgreSQL; in fact the database never even sees the original form of the query.  In order
tofacilitate portability ODBC and JDBC have internal escape sequences for certain things.  In this case you want to
bypassthat escaping and supply the raw SQL to the server and thus you need to follow the suggestion and turn off escape
processing. If you do this and the problem does not go away then there is a bug otherwise things are working logically
andas intended. 

If you still do not like the solution take it up with the JDBC specification writers; the people on this mailing list
arejust following instructions. 

David J.

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

Предыдущее
От: Dave Cramer
Дата:
Сообщение: Re: NIO support
Следующее
От: Vitalii Tymchyshyn
Дата:
Сообщение: Re: NIO support