Hi, Thanks a lot! I will include your patch in the next release.
Regards, Thomas On Wed, Feb 11, 2009 at 4:38 AM, Pavel <[email protected]> wrote: > > Thomas, > I found the case where orignal SQL is not attached as part of the > exception. > > public void missingSql() throws Exception { > > Connection h2; > > Class.forName("org.h2.Driver"); > h2 = DriverManager.getConnection("jdbc:h2:mem:"); > Statement sa = h2.createStatement(); > sa.execute("CREATE TABLE ONE (X INT)"); > try { > sa.execute("CREATE TABLE TWO AS SELECT Y FROM ONE"); > } catch (SQLException e) { > // NO SQL included as part of the error message > System.out.println("e = " + e); > } > } > > To cure the problem I added to Command.java line 234. > > Message.addSQL(e,sql) > > Pavel > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "H2 Database" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/h2-database?hl=en -~----------~----~----~----~------~----~------~--~---
