Re: [JDBC] JDBC and Binary protocol error, for some statements

From: Maciek Sakrejda <msakrejda(at)truviso(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Radosław Smogura <rsmogura(at)softperience(dot)eu>, PG Hackers <pgsql-hackers(at)postgresql(dot)org>, PostgreSQL JDBC List <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: [JDBC] JDBC and Binary protocol error, for some statements
Date: 2010-11-25 20:21:39
Message-ID: AANLkTikc6EOh5x7iZdQHzTV902kR36XwvACGQq-jaEZX@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Radosław Smogura 2010-11-25 20:46:47 Re: [JDBC] JDBC and Binary protocol error, for some statements
Previous Message Tom Lane 2010-11-25 19:42:09 Re: [JDBC] JDBC and Binary protocol error, for some statements

Browse pgsql-jdbc by date

  From Date Subject
Next Message Radosław Smogura 2010-11-25 20:46:47 Re: [JDBC] JDBC and Binary protocol error, for some statements
Previous Message Tom Lane 2010-11-25 19:42:09 Re: [JDBC] JDBC and Binary protocol error, for some statements