I suggested that once but I couldn't get my head around H2's source code.

- Rami

On 19.4.2013 19:03, Mark Addleman wrote:
We would like to use triggers as an indication to our application that data has changed in H2. Is there a way to get notified on the commit? Otherwise, what do you think about enhancing the trigger semantics to support notify at the transaction boundary?

On Thursday, April 18, 2013 7:54:45 PM UTC-7, Rami Ojares wrote:

    Hi Vineela,

    The answer is yes. Triggers are fired at statement boundary. That
    means after or before statement and always before commit.

    On Apr 18, 2013 10:48 PM, "Vineela Gampa" <[email protected]
    <javascript:>> wrote:

        Hi

        When does h2 start firing the trigger ? From my test it
        sounded like h2 fires the trigger before commit happens ? Is
        that correct ?



        Thanks
        Vineela
-- 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 [email protected]
        <javascript:>.
        To post to this group, send email to [email protected]
        <javascript:>.
        Visit this group at
        http://groups.google.com/group/h2-database?hl=en
        <http://groups.google.com/group/h2-database?hl=en>.
        For more options, visit
        https://groups.google.com/groups/opt_out
        <https://groups.google.com/groups/opt_out>.


--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/h2-database?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.



--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/h2-database?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to