From a263e39bec38c7b538197df7d5ddc1c3d3835b39 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Sat, 25 Aug 2001 21:08:24 +0000 Subject: [PATCH] Re-apply Array.java patch to new Array.java file to fix compile. --- .../jdbc/org/postgresql/jdbc2/Array.java | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/interfaces/jdbc/org/postgresql/jdbc2/Array.java b/src/interfaces/jdbc/org/postgresql/jdbc2/Array.java index 5e0f86ea35..16015b881b 100644 --- a/src/interfaces/jdbc/org/postgresql/jdbc2/Array.java +++ b/src/interfaces/jdbc/org/postgresql/jdbc2/Array.java @@ -169,11 +169,11 @@ public class Array implements java.sql.Array } public int getBaseType() throws SQLException { - return Field.getSQLType( getBaseTypeName() ); + return conn.getSQLType(getBaseTypeName()); } public String getBaseTypeName() throws SQLException { - String fType = field.getTypeName(); + String fType = field.getPGType(); if( fType.charAt(0) == '_' ) fType = fType.substring(1); return fType; @@ -195,12 +195,12 @@ public class Array implements java.sql.Array Object array = getArray( index, count, map ); Vector rows = new Vector(); Field[] fields = new Field[2]; - fields[0] = new Field(conn, "INDEX", field.getOID("int2"), 2); + fields[0] = new Field(conn, "INDEX", conn.getOID("int2"), 2); switch ( getBaseType() ) { case Types.BIT: boolean[] booleanArray = (boolean[]) array; - fields[1] = new Field(conn, "VALUE", field.getOID("bool"), 1); + fields[1] = new Field(conn, "VALUE", conn.getOID("bool"), 1); for( int i=0; i