Thanks for checking.

A while ago, Thomas changed it to create the constraints after the tables, so there should be no dependency problems any more.

If you have a look in SVN, here:
https://code.google.com/p/h2database/source/browse/trunk/h2/src/main/org/h2/command/dml/ScriptCommand.java
I've commented this class a little more to make it easier to read.

On 2012-11-27 00:54, witerat wrote:
I checked the org.h2.command.dml.Script class, in 1.3.169, it sorts tables by id, which puts them in the right order with respect to views, but no regard to dependencies in respect to each and no mention of "REFERENTIAL". I'm not sure if this is the class that generates .data.sql files it is the best candidate I could find. It also does not appear to use temporary tables anymore.


--
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.

Reply via email to