|
|||||||||||
|
Re: [JDBC] JDBC causing the connection to close after executing a COPY command
From: Altaf Malik <mmalik_altaf(at)yahoo.com>
Date: Thu Dec 13 2007 - 14:09:49 EST
I am attaching a patch that fixes this issue and driver works smoothly even after giving the error on copy response.
Regards,
Kris Jurka <books@ejurka.com> wrote: On Thu, 13 Dec 2007, Altaf Malik wrote: > Also if i enable logging in JDBC, and only execute the COPY statement, What's happening is that after receiving the server's message that it wants to do a COPY, the driver doesn't understand the protocol and dies with an "java.io.IOException: Unexpected packet type: " error. Once this happens the driver can't do anything but close the connection. As part of the connection closing process it issues a Terminate message to the server, in case it's still listening and the protocol is in a good enough state that the server might receive it. The driver is not explicitly terminating the connection upon receiving a copy request, that's just what happens when it gets confused. Kris Jurka Never miss a thing. Make Yahoo your homepage. ---------------------------(end of broadcast)---------------------------TIP 4: Have you searched our list archives? http://archives.postgresql.org
This archive was generated by hypermail 2.1.8 : Wed Jun 18 2008 - 23:41:18 EDT |
||||||||||
|
|||||||||||