Hi, > Just wonder why getting a connection makes a statement executed
The database is opened, and when doing that, the table meta data is read. The meta data is stored in the form of SQL statements (like this is done in other databases as well, for example HSQLDB and SQLite). The exception occurred when using version 1.1.112 (the version number is encoded in the exception message [42001-112]). Was this database created or opened with a much newer version of H2, for example version 1.2.120 or newer? The reason could be a change in version 1.2.120 (2009-10-04): "Issue 125: Renaming primary keys was not persistent. Fixed. Unfortunately, databases created by this version can not be opened with older versions because of this change." - see also http://www.h2database.com/html/changelog.html If this is the problem, then you either need to upgrade to a newer version, or only use an older version (not both mixed). Regards, Thomas -- 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.
