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:
@ -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:
|
||||
|
Reference in New Issue
Block a user