Author: steve.ebersole(a)jboss.com
Date: 2009-12-16 17:18:03 -0500 (Wed, 16 Dec 2009)
New Revision: 18251
Modified:
core/trunk/core/src/main/java/org/hibernate/dialect/DerbyDialect.java
Log:
HHH-4705 - Derby does now in fact support the full ANSI SQL TRIM function
Modified: core/trunk/core/src/main/java/org/hibernate/dialect/DerbyDialect.java
===================================================================
--- core/trunk/core/src/main/java/org/hibernate/dialect/DerbyDialect.java 2009-12-16
22:12:45 UTC (rev 18250)
+++ core/trunk/core/src/main/java/org/hibernate/dialect/DerbyDialect.java 2009-12-16
22:18:03 UTC (rev 18251)
@@ -62,7 +62,7 @@
public DerbyDialect() {
super();
registerFunction( "concat", new DerbyConcatFunction() );
- registerFunction( "trim", new DerbyTrimFunctionEmulation() );
+ registerFunction( "trim", new SQLFunctionTemplate( Hibernate.STRING,
"trim(?1 ?2 ?3 ?4)" ) );
determineDriverVersion();
}
Show replies by date