X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id F07D9D1B18C for ; Wed, 2 Jun 2004 08:15:47 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 83629-06 for ; Wed, 2 Jun 2004 11:15:50 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 1A648D1B181 for ; Wed, 2 Jun 2004 08:15:45 -0300 (ADT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=opencloud.com) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1BVTih-0004SH-00; Wed, 02 Jun 2004 23:15:44 +1200 Message-ID: <40BDB6F7.8070903@opencloud.com> Date: Wed, 02 Jun 2004 23:16:07 +1200 From: Oliver Jowett User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jan Heise Cc: pgsql-jdbc@postgresql.org Subject: Re: int4/int8 problem with jdbc was Re: "Fix" for INT8 literals References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Archive-Number: 200406/5 X-Sequence-Number: 10207 Jan Heise wrote: > hi all, > > i have some problems with my java app and int8 pks. i browsed the > mail-archives and found the > following mail thread *Re: "Fix" for INT8 literals being parsed as INT4 > disqualifying* > the last statement was: > > That patch will be applied soon. But it will *not* be in the 7.4 stable > branch. It will be fixed in head of tree. Since it will break existing > code I didn't want to add it to 7.4 in the middle of beta, or now that > 7.4 is RC1. > > full text of the mail i'm referring to: > > http://archives.postgresql.org/pgsql-jdbc/2003-11/msg00057.php > > has this been already adressed in the HEAD for the jdbc-driver? because > i loaded it from > gborg via cvs and the problem still persists. I don't believe the patch in question ever got applied. The 7.5 server doesn't suffer from the same "type mismatch prevents use of an index" problem, I believe. Or you could add an explicit ::int8 cast to your query. My v3 protocol changes should fix this against a 7.4 server, but they're some distance away from making it into the official driver at the moment. -O