Re: Cannot use prepared statements with create user command

Поиск
Список
Период
Сортировка
От Oliver Jowett
Тема Re: Cannot use prepared statements with create user command
Дата
Msg-id 44EBF656.2000000@opencloud.com
обсуждение исходный текст
Ответ на Cannot use prepared statements with create user command  ("Justin Waddell" <jwaddell@gmail.com>)
Список pgsql-jdbc
Justin Waddell wrote:

>> From my research into this problem it seems like prepared statements
> have been deliberately left out of the create user command as they use
> a different type of parameter; this would be fine if the security hole
> wasn't there!

The JDBC driver can only put parameters in where the server-side grammar
allows it (it does not interpolate parameter values into the actual
query, it puts $1,$2,... placeholders in place of the ? placeholders and
passes the actual parameter values out-of-line from the query itself).
If you want to change the grammar, you need to take this up with the
backend developers.. the JDBC driver can't do anything about it.

-O

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

Предыдущее
От: "surabhi.ahuja"
Дата:
Сообщение: PSQLException An I/O error occured while sending to the backend
Следующее
От: Oliver Jowett
Дата:
Сообщение: Re: org.postgresql.util.PSQLException: An I/O error occured