Re: exception handling code not exception safe

2010-04-18 Thread Sylvain Pointeau
so don't use new in C++, but it is the way to do in Java (everything is reference) On Sat, Apr 17, 2010 at 10:41 PM, James Gregurich bayouben...@mac.comwrote: You didn't understand. converting the exception isn't the issueand you can certainly throw exceptions in catch blocks. The

TIMESTAMPDIFF function

2010-04-18 Thread Alza
Hi there, I am trying to keep portability between H2 and MySQL and I would also like to use the TIMESTAMPDIFF function. Does H2 support this function? Thanks -- You received this message because you are subscribed to the Google Groups H2 Database group. To post to this group, send email to

Re: exception handling code not exception safe

2010-04-18 Thread James Gregurich
Well, that is what I am getting atI'm making known the problem so that a solution can be explored that fits in both systems. I have the C++ code written in such a way that such a problem is very unlikely, but It isn't guaranteed to never happen. I like to be thorough. BTW: What does java

Re: exception handling code not exception safe

2010-04-18 Thread James Gregurich
I read the docs on Error. Perhaps that concept is what I need to understand better to understand what I should do. Suppose the situation I describe happens. What is the intended of H2 so that the situation is handled in a clean, deterministic manner? -James On Apr 18, 2010, at 4:16 PM, Kerry

Re: Question/problem about CHAR mapping done by class ValueStringFixed

2010-04-18 Thread Thomas Mueller
Hi, Normally Hibernate uses VARCHAR and not CHAR for Strings. What is the complete stack trace (including all root causes)? Could you also post the complete Hibernate configuration (including mappings and and Java classes if you configure things with annotations)? What version of Hibernate do you