Hi,
I can now reproduce the problem. My test case is a bit simpler:
Connection conn = DriverManager.getConnection("jdbc:h2:mem:");
conn.createStatement().execute(
"create table test(id identity) as select null");
for (int i = 1; i < 20; i++) {
System.out.println("i=" + i);
CallableStatement cs = conn.prepareCall(
"{ ? = call IDENTITY()}");
cs.registerOutParameter(1, Types.BIGINT);
cs.execute();
long id = cs.getLong(1);
System.out.println("> id = " + id);
cs.close();
}
The strange thing is, if I remove cs.close(), then it works.
I didn't analyze yet what the root cause is.
Regards,
Thomas
On Sat, Dec 28, 2013 at 7:32 AM, Kirill Temnenkov <
[email protected]> wrote:
> I submitted issue http://code.google.com/p/h2database/issues/detail?id=538
>
> пятница, 27 декабря 2013 г., 10:44:55 UTC+4 пользователь Kirill Temnenkov
> написал:
>
>> will there be any corrections? or better send me a patch?
>>
>>
>> --
> 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/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.
For more options, visit https://groups.google.com/groups/opt_out.