diff options
author | Peter Mount | 1999-09-15 20:40:02 +0000 |
---|---|---|
committer | Peter Mount | 1999-09-15 20:40:02 +0000 |
commit | cd68ecfef628022de360b1839fcad0f13239b2cd (patch) | |
tree | 38446d2851c6c00a26f57549a04006f8eaa6830b /src/interfaces/jdbc/postgresql/jdbc2/ResultSet.java | |
parent | 4d4378b70fa07eff26475170897c03c1f56a2fe1 (diff) |
Some late patches from Jens Glaser ([email protected]). These upgrade the protocol
to version 2, and fixes ResultSetMetaData.getColumnDisplaySize().
Diffstat (limited to 'src/interfaces/jdbc/postgresql/jdbc2/ResultSet.java')
-rw-r--r-- | src/interfaces/jdbc/postgresql/jdbc2/ResultSet.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/jdbc/postgresql/jdbc2/ResultSet.java b/src/interfaces/jdbc/postgresql/jdbc2/ResultSet.java index 97fde4a78ce..f41b8f04529 100644 --- a/src/interfaces/jdbc/postgresql/jdbc2/ResultSet.java +++ b/src/interfaces/jdbc/postgresql/jdbc2/ResultSet.java @@ -310,7 +310,7 @@ public class ResultSet extends postgresql.ResultSet implements java.sql.ResultSe /** * Get the value of a column in the current row as a - * java.lang.BigDecimal object + * java.math.BigDecimal object * * @param columnIndex the first column is 1, the second is 2... * @param scale the number of digits to the right of the decimal @@ -723,7 +723,7 @@ public class ResultSet extends postgresql.ResultSet implements java.sql.ResultSe case Types.BIGINT: return new Long(getLong(columnIndex)); case Types.NUMERIC: - return getBigDecimal(columnIndex, 0); + return getBigDecimal(columnIndex, ((field.mod-4) & 0xffff)); case Types.REAL: return new Float(getFloat(columnIndex)); case Types.DOUBLE: |