pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Jan Heise <jan@janheise.de>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: int4/int8 problem with jdbc was Re: "Fix" for INT8 literals
Date: Wed, 02 Jun 2004 23:16:07 +1200
Message-ID: <40BDB6F7.8070903@opencloud.com> (raw)
In-Reply-To: <A8B510A0-B47E-11D8-86A9-000393DC6FC0@janheise.de>
References: <A8B510A0-B47E-11D8-86A9-000393DC6FC0@janheise.de>

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



view thread (5+ messages)  latest in thread

Message-ID: <40BDB6F7.8070903@opencloud.com>
Permalink:  ../40BDB6F7.8070903@opencloud.com/
Also on:    postgresql.org/message-id/40BDB6F7.8070903@opencloud.com

 · 

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: oliver@opencloud.com, jan@janheise.de
  Subject: Re: int4/int8 problem with jdbc was Re: "Fix" for INT8 literals
  In-Reply-To: <40BDB6F7.8070903@opencloud.com>
  References: <A8B510A0-B47E-11D8-86A9-000393DC6FC0@janheise.de> <40BDB6F7.8070903@opencloud.com>

* 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