Skip site navigation (1) Skip section navigation (2)

Re: BUG #1449: JDBC client driver bug waiting to happen

From: Kris Jurka <books(at)ejurka(dot)com>
To: Michael Robinton <michael(at)insulin-pumpers(dot)org>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #1449: JDBC client driver bug waiting to happen
Date: 2005-01-29 20:31:48
Message-ID: Pine.BSO.4.56.0501291527340.18866@leary.csoft.net (view raw or flat)
Thread:
Lists: pgsql-bugs

On Fri, 28 Jan 2005, Michael Robinton wrote:

> The following bug has been logged online:
> 
> Bug reference:      1449
> PostgreSQL version: 7.4.6
> Description:        JDBC client driver bug waiting to happen
> Details: 
> 
> if "int size" is set to 8, there is insufficient storage in "int n" to
> accomodate 8 bytes of storage since jave thinks an int is 4 bytes. Since
> currently no 8 byte longs are sent, this bug is not apparent.
> 
> /*
>          * Receives an integer from the backend
>          */
>         public int ReceiveInteger(int siz) throws SQLException
>         {

This is not a bug.  The ReceiveInteger function you are looking at is a
part of the low level protocol code and int size will never be > 4.  It
has nothing to do with how something like ResultSet.getLong() treats
integer values.

Kris Jurka

In response to

pgsql-bugs by date

Next:From: Magnus HaganderDate: 2005-01-29 20:56:32
Subject: Re: BUG #1443: Can't start service of Postgres
Previous:From: Rolf SponselDate: 2005-01-29 20:06:21
Subject: [Feed-back] Installing PostgreSQL 8.0.0 on SPARC/Solaris. Configure and install issues.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group