Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit936ff27

Browse files
author
Barry Lind
committed
fixed bug reported by cc.ais40@wanadoo.fr where getObject was returning an Integer for a smallint datatype instead of a Short
1 parentc78e411 commit936ff27

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎src/interfaces/jdbc/org/postgresql/jdbc1/ResultSet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,7 @@ public Object getObject(int columnIndex) throws SQLException
929929
caseTypes.BIT:
930930
returnnewBoolean(getBoolean(columnIndex));
931931
caseTypes.SMALLINT:
932-
returnnewInteger(getInt(columnIndex));
932+
returnnewShort((short)getInt(columnIndex));
933933
caseTypes.INTEGER:
934934
returnnewInteger(getInt(columnIndex));
935935
caseTypes.BIGINT:

‎src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ public Object getObject(int columnIndex) throws SQLException
746746
caseTypes.BIT:
747747
returnnewBoolean(getBoolean(columnIndex));
748748
caseTypes.SMALLINT:
749-
returnnewInteger(getInt(columnIndex));
749+
returnnewShort((short)getInt(columnIndex));
750750
caseTypes.INTEGER:
751751
returnnewInteger(getInt(columnIndex));
752752
caseTypes.BIGINT:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp