Commit 9eddc751 authored by Peter Mount's avatar Peter Mount

Fixed DatabaseMetaData.getTableTypes()

parent 9b0fe4ee
Thu Jul 20 16:30:00 BST 2000 petermount@it.maidstone.gov.uk
- Fixed DatabaseMetaData.getTableTypes()
Tue Jun 06 12:00:00 BST 2000 petermount@it.maidstone.gov.uk Tue Jun 06 12:00:00 BST 2000 petermount@it.maidstone.gov.uk
- Added org/postgresql/DriverClass.java to the list of files removed - Added org/postgresql/DriverClass.java to the list of files removed
by make clean (it's dynamically built) by make clean (it's dynamically built)
......
...@@ -1787,9 +1787,9 @@ public class DatabaseMetaData implements java.sql.DatabaseMetaData ...@@ -1787,9 +1787,9 @@ public class DatabaseMetaData implements java.sql.DatabaseMetaData
{ {
Field f[] = new Field[1]; Field f[] = new Field[1];
Vector v = new Vector(); Vector v = new Vector();
byte[][] tuple = new byte[1][0];
f[0] = new Field(connection,new String("TABLE_TYPE"),iVarcharOid,32); f[0] = new Field(connection,new String("TABLE_TYPE"),iVarcharOid,32);
for(int i=0;i<getTableTypes.length;i++) { for(int i=0;i<getTableTypes.length;i++) {
byte[][] tuple = new byte[1][0];
tuple[0] = getTableTypes[i][0].getBytes(); tuple[0] = getTableTypes[i][0].getBytes();
v.addElement(tuple); v.addElement(tuple);
} }
......
...@@ -1787,9 +1787,9 @@ public class DatabaseMetaData implements java.sql.DatabaseMetaData ...@@ -1787,9 +1787,9 @@ public class DatabaseMetaData implements java.sql.DatabaseMetaData
{ {
Field f[] = new Field[1]; Field f[] = new Field[1];
Vector v = new Vector(); Vector v = new Vector();
byte[][] tuple = new byte[1][0];
f[0] = new Field(connection,new String("TABLE_TYPE"),iVarcharOid,32); f[0] = new Field(connection,new String("TABLE_TYPE"),iVarcharOid,32);
for(int i=0;i<getTableTypes.length;i++) { for(int i=0;i<getTableTypes.length;i++) {
byte[][] tuple = new byte[2][0];
tuple[0] = getTableTypes[i][0].getBytes(); tuple[0] = getTableTypes[i][0].getBytes();
v.addElement(tuple); v.addElement(tuple);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment