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

Commitef80c87

Browse files
committed
Attached is a simple one line patch for the problem reported in the
following email. > > The problem: When I call getBigDecimal() on a ResultSet, it > > sometimes throws an exception: > > > > Bad BigDecimal 174.50 > > at org.postgresql.jdbc2.ResultSet.getBigDecimal(ResultSet.java:373) > > at org.postgresql.jdbc2.ResultSet.getBigDecimal(ResultSet.java:984) > > ...blah blah blah... > > org.postgresql.util.PSQLException: Bad BigDecimal 174.50Barry Lind
1 parente8f7bfc commitef80c87

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -798,8 +798,7 @@ public java.sql.Array getArray(int i) throws SQLException
798798

799799
publicjava.math.BigDecimalgetBigDecimal(intcolumnIndex)throwsSQLException
800800
{
801-
// Now must call BigDecimal with a scale otherwise JBuilder barfs
802-
returngetBigDecimal(columnIndex,0);
801+
returngetBigDecimal(columnIndex,-1);
803802
}
804803

805804
publicjava.math.BigDecimalgetBigDecimal(StringcolumnName)throwsSQLException

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp