# This patch file was generated by NetBeans IDE # This patch can be applied using context Tools: Apply Diff Patch action on respective folder. # It uses platform neutral UTF-8 encoding. # Above lines and this line are ignored by the patching process. --- C:\Projects\pgjdbc\reference\pgjdbc\org\postgresql\jdbc2\AbstractJdbc2DatabaseMetaData.java +++ C:\Projects\pgjdbc\head\pgjdbc\org\postgresql\jdbc2\AbstractJdbc2DatabaseMetaData.java @@ -2027,6 +2027,7 @@ " WHEN 'S' THEN 'SEQUENCE' " + " WHEN 'v' THEN 'VIEW' " + " WHEN 'c' THEN 'TYPE' " + + " WHEN 'f' THEN 'FOREIGN TABLE' " + " ELSE NULL " + " END " + " ELSE NULL " + @@ -2136,6 +2137,9 @@ ht.put("SCHEMAS", "c.relkind = 'r' AND n.nspname !~ '^pg_' AND n.nspname <> 'information_schema'"); ht.put("NOSCHEMAS", "c.relkind = 'r' AND c.relname !~ '^pg_'"); ht = new Hashtable(); + tableTypeClauses.put("FOREIGN TABLE", ht); + ht.put("SCHEMAS", "c.relkind = 'f' AND n.nspname <> 'pg_catalog' AND n.nspname <> 'information_schema'"); + ht = new Hashtable(); tableTypeClauses.put("VIEW", ht); ht.put("SCHEMAS", "c.relkind = 'v' AND n.nspname <> 'pg_catalog' AND n.nspname <> 'information_schema'"); ht.put("NOSCHEMAS", "c.relkind = 'v' AND c.relname !~ '^pg_'");