My understanding is that DROP statements commit open transactions. So it
would appear that even though the drop statement fails, the open
transaction is still committed.
See
http://www.h2database.com/html/grammar.html?highlight=drop&search=DROP#drop_table
"This command commits an open transaction."
My guess is this is the way that it is meant to work. Maybe try putting
an UPDATE to a table that doesn't exist or something like that?
Hope this helps,
Ryan
What I do is backup the database, run the upgrade, then on a failure the
backup can be restored. But this really means that the database needs to
be taken offline during any upgrades in-case users connect, update data,
the upgrade fails and they lose their data on the restore. Would that
work for you?. I guess the alternative is to implement running the DDL
statements in transactions, but that sounds hard to me :)
Cheers, Ryan
--
You received this message because you are subscribed to the Google Groups "H2 Database" group.
To post to this group, send email to h2-da...@googlegroups.com.
To unsubscribe from this group, send email to h2-database...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/h2-database?hl=en.