From: | Wim Ceulemans <wim(dot)ceulemans(at)nice(dot)be> |
---|---|
To: | pgsql-interfaces(at)postgresql(dot)org |
Subject: | getObject and SMALLINT (JDBC) |
Date: | 1999-11-10 08:28:56 |
Message-ID: | 38292CC8.F96A6BA8@nice.be |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-interfaces |
Hi
I noticed that all jdbc drivers return the Integer java type for a
SMALLINT database type. Is this intended or is this a bug? The
recommendation in the JDBC book (Hamiltan, Catell, Fisher) says that
SMALLINT should be mappped to the Java short type.
If I want to changes this, is all I have to do is change the line in
/src/interfaces/jdbc/postgresql/jdbc1/ResultSet.java from
case Types.SMALLINT
return new Integer(getInt(columnIndex)
to
case Types.SMALLINT
return new Short(getShort(columnIndex)
?
Regards
Wim Ceulemans
Nice bvba www.nice.be
Eglegemweg 3, 2811 Hombeek Belgium
Tel 0032-15-412953 Fax 0032-15-412954
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Mount | 1999-11-10 09:14:14 | RE: [INTERFACES] getObject and SMALLINT (JDBC) |
Previous Message | Constantin Teodorescu | 1999-11-10 07:16:00 | Re: pgaccess on Windows NT |