diff options
author | Barry Lind <barry@xythos.com> | 2002-06-07 16:46:24 +0000 |
---|---|---|
committer | Barry Lind <barry@xythos.com> | 2002-06-07 16:46:24 +0000 |
commit | 936ff276966bf43c6dda24c01850e93024849639 (patch) | |
tree | 79af9aa27442b2f8bd0ba86ba39c9e359c382a15 /src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java | |
parent | c78e411fef9401dfb3cd6e9170b5864f3b195601 (diff) | |
download | postgresql-936ff276966bf43c6dda24c01850e93024849639.tar.gz |
fixed bug reported by cc.ais40@wanadoo.fr where getObject was returning an Integer for a smallint datatype instead of a Short
Diffstat (limited to 'src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java')
-rw-r--r-- | src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java b/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java index 20c68016ca..6c6a821e6e 100644 --- a/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java +++ b/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java @@ -746,7 +746,7 @@ public class ResultSet extends org.postgresql.ResultSet implements java.sql.Resu case Types.BIT: return new Boolean(getBoolean(columnIndex)); case Types.SMALLINT: - return new Integer(getInt(columnIndex)); + return new Short((short)getInt(columnIndex)); case Types.INTEGER: return new Integer(getInt(columnIndex)); case Types.BIGINT: |