Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id A81B19FA43B for ; Thu, 1 Mar 2007 20:17:47 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 62512-01 for ; Thu, 1 Mar 2007 20:17:44 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 8D8189FB3A4 for ; Thu, 1 Mar 2007 20:17:44 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id l220GIrJ026672; Thu, 1 Mar 2007 19:16:18 -0500 (EST) To: Dave Cramer cc: pgsql-jdbc@postgresql.org Subject: Re: Inserting "null" not working (Sun App Server, Postgres, EJB3)? In-reply-to: References: <40939ed60703010604j149caad2n92dccac2ae6f6824@mail.gmail.com> <3AC75FD4-F9DC-4B9E-AA60-38F67EFD39B0@redhat.com> <0DC8A2E6-BB3C-4592-BF9E-7EECA0CCE37B@fastcrypt.com> <23779.1172793964@sss.pgh.pa.us> Comments: In-reply-to Dave Cramer message dated "Thu, 01 Mar 2007 19:09:17 -0500" Date: Thu, 01 Mar 2007 19:16:18 -0500 Message-ID: <26671.1172794578@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.06 tagged_above=0 required=5 tests=AWL, BAYES_50, SPF_HELO_PASS, SPF_PASS X-Spam-Level: X-Archive-Number: 200703/9 X-Sequence-Number: 16723 Dave Cramer writes: > On 1-Mar-07, at 7:06 PM, Tom Lane wrote: >> At least in this particular case, leaving the parameter type as >> UNKNOWN >> would have worked as the OP wishes. I dunno if that would break other >> cases though. > This means you have to leave all parameter types as UNKNOWN. What's > the point of having parameter types at all ? No, only the ones you do not have any knowledge about. The OP's complaint is basically that the driver is forcing the parameter type to "varchar" on the basis of nothing whatsoever. regards, tom lane