|
|
|
@ -114,7 +114,14 @@ public class HSQLDialect extends Dialect {
|
|
|
|
|
super(); |
|
|
|
|
|
|
|
|
|
try { |
|
|
|
|
final Class props = ReflectHelper.classForName( "org.hsqldb.persist.HsqlDatabaseProperties" ); |
|
|
|
|
Class p; |
|
|
|
|
try { |
|
|
|
|
// loy: 我们的hsql驱动改了包名,这里也改下
|
|
|
|
|
p = ReflectHelper.classForName( "com.fr.third.org.hsqldb.persist.HsqlDatabaseProperties" ); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
p = ReflectHelper.classForName( "org.hsqldb.persist.HsqlDatabaseProperties" ); |
|
|
|
|
} |
|
|
|
|
final Class props = p; |
|
|
|
|
final String versionString = (String) props.getDeclaredField( "THIS_VERSION" ).get( null ); |
|
|
|
|
|
|
|
|
|
hsqldbVersion = Integer.parseInt( versionString.substring( 0, 1 ) ) * 100; |
|
|
|
|