pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Maciek Sakrejda <msakrejda@truviso.com>
Cc: Radosław Smogura <rsmogura@softperience.eu>
Cc: PG Hackers <pgsql-hackers@postgresql.org>
Cc: PostgreSQL JDBC List <pgsql-jdbc@postgresql.org>
Subject: Re: [JDBC] JDBC and Binary protocol error, for some statements
Date: Thu, 25 Nov 2010 14:42:09 -0500
Message-ID: <18034.1290714129@sss.pgh.pa.us> (raw)
In-Reply-To: <AANLkTim9yud09tPLYnbKcAtv=jZHUqVY-1+2BeOS+0d=@mail.gmail.com>
References: <a7d41aaa473a1a4c38e04796b9f3ac36@smogura-softworks.eu>
	<AANLkTinPj72jDdJmRJwowmmB8AeU7sFLaUCm7O1nmfdN@mail.gmail.com>
	<201011241918.40930.rsmogura@softperience.eu>
	<AANLkTikkF6YRtHzyH4qLzxUQx=PvrJXOO3K4weF6UM_W@mail.gmail.com>
	<AANLkTi=oe-HryF1Y8C0JH_ifH+Z_4rQb_r5EQEjnxFT_@mail.gmail.com>
	<14932.1290705783@sss.pgh.pa.us>
	<e3a52d52a67f7c30f9a3127b9bfbe6a3@smogura-softworks.eu>
	<AANLkTim9yud09tPLYnbKcAtv=jZHUqVY-1+2BeOS+0d=@mail.gmail.com>

Maciek Sakrejda <msakrejda@truviso.com> writes:
>> But to the last part of cited protocol specification, when I've sent message with statement parameter's type int4, int8, varchar the format
>> field wasn't set to 0, but 1.

> I wasn't able to reproduce that with my standalone test case. When I
> changed the parameter oid to 23, I still got the same behavior. Can
> you alter my test case to reproduce the error?

I'd be really surprised if that affected the server-side behavior.
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.

			regards, tom lane



view thread (20+ messages)  latest in thread

Message-ID: <18034.1290714129@sss.pgh.pa.us>
Permalink:  ../18034.1290714129@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/18034.1290714129@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: tgl@sss.pgh.pa.us, msakrejda@truviso.com, rsmogura@softperience.eu, pgsql-hackers@postgresql.org
  Subject: Re: [JDBC] JDBC and Binary protocol error, for some statements
  In-Reply-To: <18034.1290714129@sss.pgh.pa.us>
  References: <a7d41aaa473a1a4c38e04796b9f3ac36@smogura-softworks.eu> <AANLkTinPj72jDdJmRJwowmmB8AeU7sFLaUCm7O1nmfdN@mail.gmail.com> <201011241918.40930.rsmogura@softperience.eu> <AANLkTikkF6YRtHzyH4qLzxUQx=PvrJXOO3K4weF6UM_W@mail.gmail.com> <AANLkTi=oe-HryF1Y8C0JH_ifH+Z_4rQb_r5EQEjnxFT_@mail.gmail.com> <14932.1290705783@sss.pgh.pa.us> <e3a52d52a67f7c30f9a3127b9bfbe6a3@smogura-softworks.eu> <AANLkTim9yud09tPLYnbKcAtv=jZHUqVY-1+2BeOS+0d=@mail.gmail.com> <18034.1290714129@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox