Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id F05561337B8D for ; Thu, 25 Nov 2010 15:42:17 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 46755-08; Thu, 25 Nov 2010 19:42:11 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 6A7361336971; Thu, 25 Nov 2010 15:42:10 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id oAPJg9xD018035; Thu, 25 Nov 2010 14:42:09 -0500 (EST) To: Maciek Sakrejda cc: =?UTF-8?Q?Rados=C5=82aw_Smogura?= , PG Hackers , PostgreSQL JDBC List Subject: Re: [JDBC] JDBC and Binary protocol error, for some statements In-reply-to: References: <201011241918.40930.rsmogura@softperience.eu> <14932.1290705783@sss.pgh.pa.us> Comments: In-reply-to Maciek Sakrejda message dated "Thu, 25 Nov 2010 11:28:02 -0800" Date: Thu, 25 Nov 2010 14:42:09 -0500 Message-ID: <18034.1290714129@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201011/1747 X-Sequence-Number: 174890 Maciek Sakrejda 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