blocked with issue 311

49 views
Skip to first unread message

LRichard

unread,
Aug 12, 2011, 6:59:34 AM8/12/11
to H2 Database, thomas.to...@gmail.com
Hello,

I am stuck with issue 311 (cf http://code.google.com/p/h2database/issues/detail?id=311#c4).
Does anyone know a way to get around it when you don't access the
database directly through JDBC but with hibernate instead ?
Any help will be greatly appreciated.

Regards

Laurent R

LRichard

unread,
Aug 12, 2011, 11:34:34 AM8/12/11
to h2-da...@googlegroups.com, thomas.to...@gmail.com
Hi again,

I began to modify some H2 code in order to make my use case work. The attached file is a patch file for org.h2.expression.SequenceValue. It seems to solve my problem fine but I don't know enough the architecture of the H2 engine to be sure it won't fail in some other situations. I ran "build test" and I got the same results with and without this patch...
Do you think this is safe ?

Regards
seqval_serialized.patch
Message has been deleted

Thomas Mueller

unread,
Aug 21, 2011, 3:01:47 AM8/21/11
to h2-database
Hi,

In your patch, 'beforeWriting' is called too late (see where it is
called otherwise). I have now implemented a solution however, it is
already committed. Could you check if it works for you (you need to
build H2 yourself using the source code in the trunk).

Regards,
Thomas

Thomas Mueller

unread,
Aug 21, 2011, 3:02:55 AM8/21/11
to h2-da...@googlegroups.com

LRichard

unread,
Aug 21, 2011, 3:39:40 AM8/21/11
to h2-da...@googlegroups.com
Hi,

As I commented it in the issue, I tested your solution in my application and it works fine. I thank you very much for this.

Sincerely yours,
Laurent
Reply all
Reply to author
Forward
0 new messages