On 2015-06-13 08:57 AM, iJava wrote:
> Ok. This feature is really very important for me. I will try to implement it myself. Could you just point me where I
> should look at in order not to look through all the code.
>
org.h2.jdbc.JdbcConnection#getGeneratedKeys
which calls the SCOPE_IDENTITY function:
http://h2database.com/html/functions.html#scope_identity
which is implemented in org.h2.expression.Function line 907 by calling
org.h2.engine.Session#getLastScopeIdentity
which is where you will have to somehow store an array of values.
You will probably need to implement a new SQL function, because we can't mess with the existing one