Skip to content

Commit

Permalink
Two straggling schema qualifications
Browse files Browse the repository at this point in the history
Puzzling how these were overlooked in a7ce56f.
  • Loading branch information
jcflack committed Sep 11, 2023
1 parent 0ad93fe commit 188b418
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1574,7 +1574,11 @@ public java.sql.ResultSet getProcedureColumns(String catalog,
// if we are returning a multi-column result.
if(returnTypeType.equals("c"))
{
String columnsql = "SELECT a.attname,a.atttypid FROM pg_catalog.pg_attribute a WHERE a.attrelid = ? ORDER BY a.attnum ";
String columnsql =
"SELECT a.attname,a.atttypid " +
"FROM pg_catalog.pg_attribute a " +
"WHERE a.attrelid OPERATOR(pg_catalog.=) ? " +
"ORDER BY a.attnum";
PreparedStatement stmt = m_connection.prepareStatement(columnsql);
stmt.setObject(1, returnTypeRelid);
ResultSet columnrs = stmt.executeQuery(columnsql);
Expand Down Expand Up @@ -2158,7 +2162,7 @@ public java.sql.ResultSet getTablePrivileges(String catalog,

String sql = "SELECT n.nspname,c.relname,u.usename,c.relacl "
+ " FROM pg_catalog.pg_namespace n, pg_catalog.pg_class c, pg_catalog.pg_user u "
+ " WHERE c.relnamespace = n.oid "
+ " WHERE c.relnamespace OPERATOR(pg_catalog.=) n.oid "
+ " AND u.usesysid OPERATOR(pg_catalog.=) c.relowner "
+ " AND c.relkind OPERATOR(pg_catalog.=) 'r' "
+ " AND " + resolveSchemaPatternCondition(
Expand Down

0 comments on commit 188b418

Please sign in to comment.