HHH-7059 The DerbyDialect deprecation warning should appear no more,

when using one of the version-specific dialects
This commit is contained in:
Guenther Demetz 2012-05-03 14:00:01 +02:00 committed by Strong Liu
parent e61e2392c3
commit a61a7f40e7
1 changed files with 3 additions and 1 deletions

View File

@ -56,7 +56,9 @@ public class DerbyDialect extends DB2Dialect {
public DerbyDialect() {
super();
LOG.deprecatedDerbyDialect();
if (this.getClass() == DerbyDialect.class) {
LOG.deprecatedDerbyDialect();
}
registerFunction( "concat", new DerbyConcatFunction() );
registerFunction( "trim", new AnsiTrimFunction() );
registerColumnType( Types.BLOB, "blob" );