Re: Statement Timeout and Locking

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: Statement Timeout and Locking
Дата
Msg-id Pine.BSO.4.56.0504280920080.30994@leary.csoft.net
обсуждение исходный текст
Ответ на Re: Statement Timeout and Locking  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Statement Timeout and Locking  (Kris Jurka <books@ejurka.com>)
Список pgsql-jdbc

On Thu, 28 Apr 2005, Tom Lane wrote:

> Markus Schaber <schabi@logix-tt.com> writes:
> >         conn.createStatement().execute("SET statement_timeout TO 5000; LOCK TABLE exampletable IN EXCLUSIVE MODE;
SETstatement_timeout TO 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.
>

The JDBC driver splits this query itself and issues it in three queries
internally.

Kris Jurka

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Statement Timeout and Locking
Следующее
От: Kris Jurka
Дата:
Сообщение: Re: Array support