Re: Statement Timeout and Locking

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Statement Timeout and Locking
Дата
Msg-id 11053.1114697497@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Statement Timeout and Locking  (Markus Schaber <schabi@logix-tt.com>)
Ответы Re: Statement Timeout and Locking  (Kris Jurka <books@ejurka.com>)
Список pgsql-jdbc
Markus Schaber <schabi@logix-tt.com> writes:
>         conn.createStatement().execute("SET statement_timeout TO 5000; LOCK TABLE exampletable IN EXCLUSIVE MODE; SET
statement_timeoutTO DEFAULT;"); 

At least in more recent JDBC drivers, I'd expect the above to fail
entirely because you can only put one SQL command per V3 Parse message.
Try splitting it into three statements.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: ERROR: could not convert UTF-8 character 0x00ef to ISO8859-1 possiblesolution
Следующее
От: Kris Jurka
Дата:
Сообщение: Re: Statement Timeout and Locking