Index: DatabaseMetaData.java =================================================================== RCS file: /projects/cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/DatabaseMetaData.java,v retrieving revision 1.42 diff -c -r1.42 DatabaseMetaData.java *** DatabaseMetaData.java 2001/10/31 20:27:37 1.42 --- DatabaseMetaData.java 2001/11/02 22:08:02 *************** *** 2643,2661 **** + "a.tgdeferrable," + "a.tginitdeferred " + "FROM " ! + "(SELECT t.tgargs, t.tgconstrname, p.proname, t.tgdeferrable," ! + "t.tginitdeferred " + "FROM pg_class as c, pg_proc as p, pg_trigger as t " ! + "WHERE c.relfilenode=t.tgrelid AND t.tgfoid = p.oid " ! + "AND p.proname LIKE 'RI_FKey_%_upd') as a," + "(SELECT t.tgconstrname, p.proname " + "FROM pg_class as c, pg_proc as p, pg_trigger as t " ! + "WHERE c.relfilenode=t.tgrelid AND t.tgfoid = p.oid " ! + "AND p.proname LIKE 'RI_FKey_%_del') as b," ! + "(SELECT t.tgconstrname FROM pg_class as c, pg_trigger as t " ! + "WHERE c.relname like '"+table+"' AND c.relfilenode=t.tgrelid) as c " ! + "WHERE a.tgconstrname=b.tgconstrname AND a.tgconstrname=c.tgconstrname" ! ); Vector tuples = new Vector(); while (rs.next()) --- 2643,2659 ---- + "a.tgdeferrable," + "a.tginitdeferred " + "FROM " ! + "(SELECT t.tgargs, t.tgconstrname, p.proname," ! + "t.tgdeferrable, t.tginitdeferred " + "FROM pg_class as c, pg_proc as p, pg_trigger as t " ! + "WHERE c.relname like '"+table+"' AND c.relfilenode=t.tgrelid " ! + "AND t.tgfoid = p.oid AND p.proname LIKE 'RI_FKey_%_upd') as a, " + "(SELECT t.tgconstrname, p.proname " + "FROM pg_class as c, pg_proc as p, pg_trigger as t " ! + "WHERE c.relname like '"+table+"' AND c.relfilenode=t.tgrelid " ! + "AND t.tgfoid = p.oid AND p.proname LIKE 'RI_FKey_%_del') as b " ! + "WHERE a.tgconstrname=b.tgconstrname" ! ); Vector tuples = new Vector(); while (rs.next())