Re: JDBC causing the connection to close after executing a COPY command

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: JDBC causing the connection to close after executing a COPY command
Дата
Msg-id Pine.BSO.4.64.0712131110290.28251@leary.csoft.net
обсуждение исходный текст
Ответ на JDBC causing the connection to close after executing a COPY command  (Altaf Malik <mmalik_altaf@yahoo.com>)
Список pgsql-jdbc

On Thu, 13 Dec 2007, Altaf Malik wrote:

> JDBC is causing the connection to close on executing a simple COPY query
> which the driver does not support. The code shows that driver throws an
> exception however explicitly the connection is not closed. Consider the
> following case.

The JDBC driver doesn't even understand enough of the COPY protocol to
ignore it.  Perhaps we could respond to any copy requests with copyfail,
but it would make more sense to me to look at integrating the copy patch.

So, I'm not sure what your complaint is.  Do you want the driver to be
able to continue after a copy operation is issued or do you just want a
better error message?  How would client code be better able to handle a
"Connection has been closed behind the scenes because something illegal
was done" vs an IOException.

Kris Jurka

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

Предыдущее
От: Altaf Malik
Дата:
Сообщение: Re: JDBC causing the connection to close after executing a COPY command
Следующее
От: Kris Jurka
Дата:
Сообщение: Re: JDBC causing the connection to close after executing a COPY command