patch from Alexey Slynko

This patch solve problems with arrays in latest development JDBC driver
This commit is contained in:
Dave Cramer 2002-03-15 04:11:49 +00:00
parent 31effd10fe
commit a2b5512929

View file

@ -767,6 +767,8 @@ public class ResultSet extends org.postgresql.ResultSet implements java.sql.Resu
case Types.BINARY:
case Types.VARBINARY:
return getBytes(columnIndex);
case Types.ARRAY:
return getArray(columnIndex);
default:
String type = field.getPGType();
// if the backend doesn't know the type then coerce to String