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

Поиск
Список
Период
Сортировка
От Altaf Malik
Тема Re: JDBC causing the connection to close after executing a COPY command
Дата
Msg-id 689590.40570.qm@web39115.mail.mud.yahoo.com
обсуждение исходный текст
Ответ на Re: JDBC causing the connection to close after executing a COPY command  (Dave Cramer <pg@fastcrypt.com>)
Ответы Re: JDBC causing the connection to close after executing a COPY command  (Kris Jurka <books@ejurka.com>)
Список pgsql-jdbc
Hi,
At what point can you determine the connection is closed ? Can you do con.createStatement after the exception ?
If you see, i have placed the the
stmt.execute("COPY abc TO STDOUT WITH DELIMITER '|'");
in a try-catch block, and after the try-catch block, i have executed again
stmt.execute("Select * from abc")
which throws an IO Exception. Also if i enable logging in JDBC, and only execute the COPY statement, log shows that FrontEnd sent a Terminate message.


Thanks,
Altaf Malik
EnterpriseDB
http://www.enterprisedb.com/


Never miss a thing. Make Yahoo your homepage.

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

Предыдущее
От: Dave Cramer
Дата:
Сообщение: 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