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.
Never miss a thing. Make Yahoo your homepage.
In response to
pgsql-jdbc by date
|Next:||From: Kris Jurka||Date: 2007-12-13 16:26:03|
|Subject: Re: JDBC causing the connection to close after executing a
|Previous:||From: Dave Cramer||Date: 2007-12-13 15:37:10|
|Subject: Re: JDBC causing the connection to close after executing a COPY command|