java.sql.ResultSetr=connection.ExecSQL("SELECT relname, relacl FROM pg_class, pg_user WHERE ( relkind = 'r' OR relkind = 'i') and relname !~ '^pg_' and relname !~ '^xin[vx][0-9]+' and usesysid = relowner and relname like '"+tableNamePattern.toLowerCase()+"' ORDER BY relname");
// For now, don't add to the result as relacl needs to be processed.
//v.addElement(tuple);
}
// This is taken direct from the psql source
java.sql.ResultSetr=connection.ExecSQL("SELECT relname, relacl FROM pg_class, pg_user WHERE ( relkind = 'r' OR relkind = 'i') and relname !~ '^pg_' and relname !~ '^xin[vx][0-9]+' and usesysid = relowner and relname like '"+tableNamePattern.toLowerCase()+"' ORDER BY relname");
@@ -2913,10 +2912,10 @@ public class DatabaseMetaData implements java.sql.DatabaseMetaData
Integer.toString(tableIndexOther).getBytes();
tuple[7]=Integer.toString(i+1).getBytes();
java.sql.ResultSetcolumnNameRS=connection.ExecSQL("select a.attname FROM pg_attribute a WHERE (a.attnum = "+columnOrdinals[i]+") AND (a.attrelid = "+r.getInt(9)+")");
if(columnNameRS.next())
tuple[8]=columnNameRS.getBytes(1);
else
tuple[8]="".getBytes();
if(columnNameRS.next())
tuple[8]=columnNameRS.getBytes(1);
else
tuple[8]="".getBytes();
tuple[8]=columnNameRS.getBytes(1);
tuple[9]=null;// sort sequence ???
tuple[10]=r.getBytes(7);// inexact
...
...
@@ -2932,7 +2931,7 @@ public class DatabaseMetaData implements java.sql.DatabaseMetaData
// ** JDBC 2 Extensions **
/**
/*
* Does the database support the given result set type?
*
* @param type - defined in java.sql.ResultSet
...
...
@@ -2946,7 +2945,7 @@ public class DatabaseMetaData implements java.sql.DatabaseMetaData
}
/**
/*
* Does the database support the concurrency type in combination
* with the given result set type?
*
...
...
@@ -3016,7 +3015,7 @@ public class DatabaseMetaData implements java.sql.DatabaseMetaData
returnfalse;
}
/**
/*
* Indicates whether the driver supports batch updates.