fix for a bug in DatabaseMetaData.getIndexInfo(). This fixes a bug reported by tom_falconer@lineone.net. On Sept 7th, he sent a test case to the list demonstrating the bug. His test case now works successfully with this patch
@ -2747,7 +2748,7 @@ public class DatabaseMetaData implements java.sql.DatabaseMetaData
Integer.toString(tableIndexHashed).getBytes():
Integer.toString(tableIndexOther).getBytes();
tuple[7]=Integer.toString(i+1).getBytes();
java.sql.ResultSetcolumnNameRS=connection.ExecSQL("select a.attname FROM pg_attribute a, pg_class c WHERE (a.attnum = "+columnOrdinals[i]+") AND (a.attrelid = "+r.getInt(8)+")");
java.sql.ResultSetcolumnNameRS=connection.ExecSQL("select a.attname FROM pg_attribute a WHERE (a.attnum = "+columnOrdinals[i]+") AND (a.attrelid = "+r.getInt(9)+")");
@ -2750,7 +2751,7 @@ public class DatabaseMetaData implements java.sql.DatabaseMetaData
Integer.toString(tableIndexHashed).getBytes():
Integer.toString(tableIndexOther).getBytes();
tuple[7]=Integer.toString(i+1).getBytes();
java.sql.ResultSetcolumnNameRS=connection.ExecSQL("select a.attname FROM pg_attribute a, pg_class c WHERE (a.attnum = "+columnOrdinals[i]+") AND (a.attrelid = "+r.getInt(8)+")");
java.sql.ResultSetcolumnNameRS=connection.ExecSQL("select a.attname FROM pg_attribute a WHERE (a.attnum = "+columnOrdinals[i]+") AND (a.attrelid = "+r.getInt(9)+")");