James Adams
2006-12-27 02:44:31 UTC
I am running a DbUnit test using in-memory HSQLDB and the test fails because
the data I'm inserting is missing the table containing the foreign key for
the table rows I'm loading.
I want to disable HSQLDB's foreign key constraint checking for this test,
perhaps by specifying an option on the URL.
I have tried appending "&sessionVariables=FOREIGN_KEY_CHECKS=0" to the
JDBC URL since (I think) this is how this is done for MySQL, but it doesn't
appear to work for HSQLDB.
Can someone recommend a solution? Thanks in advance!
--James
the data I'm inserting is missing the table containing the foreign key for
the table rows I'm loading.
I want to disable HSQLDB's foreign key constraint checking for this test,
perhaps by specifying an option on the URL.
I have tried appending "&sessionVariables=FOREIGN_KEY_CHECKS=0" to the
JDBC URL since (I think) this is how this is done for MySQL, but it doesn't
appear to work for HSQLDB.
Can someone recommend a solution? Thanks in advance!
--James
--
View this message in context: http://www.nabble.com/How-to-disable-HSQLDB-foreign-key-constraint-checks--tf2884496.html#a8059044
Sent from the HSQLDB - User mailing list archive at Nabble.com.
View this message in context: http://www.nabble.com/How-to-disable-HSQLDB-foreign-key-constraint-checks--tf2884496.html#a8059044
Sent from the HSQLDB - User mailing list archive at Nabble.com.