Hi,

I am invoking the following statements using Flyway:

INSERT INTO permission VALUES();
INSERT INTO users (version, last_modified, insert_permission_id) VALUES (0, 
NOW(), SCOPE_IDENTITY());

permission has a single IDENTITY column. I am expecting SCOPE_IDENTITY() to 
return the inserted ID in the second statement. Any ideas why this is not 
happening?

I am using H2 1.3.176.

Thanks,
Gili

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to