Hello. In depends on version of H2. You should use DatabaseMetaData.getJDBCMajorVersion() and DatabaseMetaData.getJDBCMinorVersion() to detect its announced version.
For example, H2 1.4.200 returns 4.1, in the current sources of H2 the returned version is 4.2. But this version has a very low meaning in H2 and in many other drivers. You can use some methods and features from JDBC 4.2 and 4.3 in H2 1.4.200 (such as JSR-310 data types), but some exotic methods from old versions of JDBC may not work. You should test availability of actual features and not the information from DatabaseMetaData, its methods aren't fully reliable in all or almost all JDBC drivers; H2 is not an exclusion. -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/h2-database/b6282282-a3d2-4c43-bdf1-35e12dd83f2d%40googlegroups.com.
