Canceling statement results in broken connection (JDBC)

From: Alexander Staubo <alex(at)byzantine(dot)no>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Canceling statement results in broken connection (JDBC)
Date: 2003-10-08 15:31:25
Message-ID: 7A548BCF-F9A4-11D7-AB42-000A9566B916@byzantine.no
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Using Statement.cancel() to cancel a running query, queries are
sometimes successfully canceled, but more often result in a broken
connection, after which all interactions result in an error such as
this:

Unknown Response Type c
at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:123)
at
org.postgresql.jdbc1.AbstractJdbc1Connection.ExecSQL(AbstractJdbc1Connec
tion.java:505)
at
org.postgresql.jdbc1.AbstractJdbc1Statement.execute(AbstractJdbc1Stateme
nt.java:320)
at
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Stateme
nt.java:48)
at
org.postgresql.jdbc1.AbstractJdbc1Statement.executeQuery(AbstractJdbc1St
atement.java:153)

The response type code is random, implying that the client is receiving
unexpected data from the back end.

PostgreSQL 7.3.4, Sun Java2 SDK 1.4.2, Windows (Cygwin).

Alexander.

Browse pgsql-bugs by date

  From Date Subject
Next Message Hiroshi Saito 2003-10-08 16:23:56 Re: Degrade(character conversion problem) pga3?
Previous Message Gareth Boden 2003-10-08 15:18:00 Re: Unpredictable signal 11 crashes on Mac OS X