Re: [JDBC] ERROR: canceling query due to user request

Поиск
Список
Период
Сортировка
От Paul Thomas
Тема Re: [JDBC] ERROR: canceling query due to user request
Дата
Msg-id 20040909114242.A1057@bacon
обсуждение исходный текст
Ответ на Re: [JDBC] ERROR: canceling query due to user request  (Oliver Jowett <oliver@opencloud.com>)
Ответы Byte Sizes
Re: [JDBC] ERROR: canceling query due to user request
Список pgsql-general
On 09/09/2004 10:41 Oliver Jowett wrote:
> Paul Thomas wrote:
>
>> Given that statement.cancel() should only be used to cancel a running
>> query, I think the problem is more in your framework's misuse of
>> cancel() rather than in the driver itself.
>
> JDBC gives you no way to ensure you only call cancel() on a running query
> (there's a race between query execution returning and the call to
> cancel()). Calling cancel() on a statement that's not currently executing
> should do nothing; if it ends up cancelling a future query, it's a driver
> bug.

Thanks for the explaination Oliver. Maybe there is a driver bug then?

--
Paul Thomas
+------------------------------+-------------------------------------------+
| Thomas Micro Systems Limited | Software Solutions for Business           |
| Computer Consultants         | http://www.thomas-micro-systems-ltd.co.uk |
+------------------------------+-------------------------------------------+

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

Предыдущее
От: Oliver Jowett
Дата:
Сообщение: Re: [JDBC] ERROR: canceling query due to user request
Следующее
От: Christopher Browne
Дата:
Сообщение: Re: Migrating from MaxDB to postgresql