Hi Vineela,
The answer is yes. Triggers are fired at statement boundary. That means after or before statement and always before commit.
--
You received this message because you are subscribed to the Google Groups "H2 Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to h2-database...@googlegroups.com.
To post to this group, send email to h2-da...@googlegroups.com.
Visit this group at http://groups.google.com/group/h2-database?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
To Thomas or any other h2 committee : we'll gladly submit a patch for a commit callback feature if you give us a hint where to start.
Yes. I was thinking of some sort of two step approach. We'll take a look at the session class.thanks
You received this message because you are subscribed to a topic in the Google Groups "H2 Database" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/h2-database/huLqCpFQOhw/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to h2-database...@googlegroups.com.
On Apr 20, 2013 12:49 PM, "Noel Grandin" <noelg...@gmail.com> wrote:
You received this message because you are subscribed to a topic in the Google Groups "H2 Database" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/h2-database/huLqCpFQOhw/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to h2-database...@googlegroups.com.
To post to this group, send email to h2-da...@googlegroups.com.
Visit this group at http://groups.google.com/group/h2-database?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
We want to use the trigger to detect changes in a table then drive new work in a different transaction. Since triggers are fired before the commit, the second transaction doesn't see the updates.
We don't really need any row information in the trigger, we really just need to know when the commit completes