1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-02 09:02:37 +03:00

patch submitted by Jason Davies jason@netspade.com to improve ResultSetMetaData.getColumnClassName() support

This commit is contained in:
Barry Lind
2002-06-24 05:09:29 +00:00
parent c50bf0190f
commit 99aa2f8ef9
3 changed files with 60 additions and 32 deletions

View File

@ -935,9 +935,9 @@ public class ResultSet extends org.postgresql.ResultSet implements java.sql.Resu
switch (field.getSQLType())
{
case Types.BIT:
return new Boolean(getBoolean(columnIndex));
return getBoolean(columnIndex) ? Boolean.TRUE : Boolean.FALSE;
case Types.SMALLINT:
return new Short((short)getInt(columnIndex));
return new Short(getShort(columnIndex));
case Types.INTEGER:
return new Integer(getInt(columnIndex));
case Types.BIGINT: