Changeset: 0c33775ba2b6 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=0c33775ba2b6
Modified Files:
        java/src/nl/cwi/monetdb/client/JdbcClient.java
Branch: Oct2010
Log Message:

silently ignore constraints from system tables, because of a mismatch between 
which tables we dump (selective) and for which tables we get referential 
constraints (no selection possible)


diffs (28 lines):

diff -r 56fe2754d6b8 -r 0c33775ba2b6 
java/src/nl/cwi/monetdb/client/JdbcClient.java
--- a/java/src/nl/cwi/monetdb/client/JdbcClient.java    Fri Oct 01 13:00:12 
2010 +0200
+++ b/java/src/nl/cwi/monetdb/client/JdbcClient.java    Fri Oct 01 13:01:04 
2010 +0200
@@ -348,6 +348,8 @@
                                        }
                                }
                        } else {
+                               /* this returns everything, so including SYSTEM 
TABLE
+                                * constraints */
                                tbl = dbmd.getImportedKeys(null, null, null);
                                while (tbl.next()) {
                                        // find FK table object
@@ -356,12 +358,10 @@
                                        // find PK table object
                                        Table pk = 
Table.findTable(tbl.getString("PKTABLE_SCHEM") + "." + 
tbl.getString("PKTABLE_NAME"), tables);
 
-                                       // should not be possible to happen
+                                       // this happens when a system table has 
referential
+                                       // constraints
                                        if (fk == null || pk == null)
-                                               throw new 
AssertionError("Illegal table '" +
-                                                               
tbl.getString("FKTABLE_SCHEM") + "." +
-                                                               
tbl.getString("FKTABLE_NAME") +
-                                                               "': table not 
found in list");
+                                               continue;
 
                                        // add PK table dependancy to FK table
                                        fk.addDependancy(pk);
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to