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 AANLkTikc6EOh5x7iZdQHzTV902kR36XwvACGQq-jaEZX@mail.gmail.com
Whole thread Raw
In response to Re: [HACKERS] JDBC and Binary protocol error, for some statements  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [HACKERS] JDBC and Binary protocol error, for some statements  (Radosław Smogura <rsmogura@softperience.eu>)
List pgsql-jdbc
> OTOH, it seems possible that the JDBC driver might behave differently
> depending on whether parameter types were prespecified or not --- it
> might issue Describe earlier in order to get the parameter types,
> perhaps.

Ah. Bingo:

        boolean describeStatement = describeOnly || (!oneShot &&
paramsHasUnknown && queryHasUnknown && !query.isStatementDescribed());


---
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: Tom Lane
Date:
Subject: Re: [HACKERS] JDBC and Binary protocol error, for some statements
Next
From: Radosław Smogura
Date:
Subject: Re: [HACKERS] JDBC and Binary protocol error, for some statements