Re: [HACKERS] JDBC and Binary protocol error, for some statements - Mailing list pgsql-jdbc

From Maciek Sakrejda
Subject Re: [HACKERS] JDBC and Binary protocol error, for some statements
Date
Msg-id AANLkTik+vZWCaywc0XyufvkrhJ5b659N9tG5m76VBZ+t@mail.gmail.com
Whole thread Raw
In response to Re: [HACKERS] JDBC and Binary protocol error, for some statements  (Radosław Smogura <rsmogura@softperience.eu>)
Responses Re: [HACKERS] JDBC and Binary protocol error, for some statements  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-jdbc
> 21:43:02.264 (26)  FE=> Describe(statement=S_1)

You're still doing the statement-flavor Describe. As Tom pointed out,
this won't tell you the result types because it doesn't know them.
Actually, technically if you issue a statement-flavor Describe *after*
a Bind, the server does have this information, but I'm not surprised
that it doesn't send it correctly, since it seems pointless to send
the statement variation after already doing a Bind.

You may be able to change the JDBC code to call sendDescribePortal() instead.


---
Maciek Sakrejda | System Architect | Truviso

1065 E. Hillsdale Blvd., Suite 215
Foster City, CA 94404
(650) 242-3500 Main
www.truviso.com

pgsql-jdbc by date:

Previous
From: Radosław Smogura
Date:
Subject: Re: [HACKERS] JDBC and Binary protocol error, for some statements
Next
From: Thomas Kellerer
Date:
Subject: Re: getTables() doesn't handle umlauts correctly