[HHH-8941] add SQLFunctionTemplate for replace() to FirebirdDialect

Conflicts:
	hibernate-core/src/main/java/org/hibernate/dialect/FirebirdDialect.java
This commit is contained in:
dodgex 2014-05-23 17:52:35 -04:00 committed by Brett Meyer
parent d3f75ea0d9
commit d7347c3f48
1 changed files with 9 additions and 0 deletions

View File

@ -23,12 +23,21 @@
*/
package org.hibernate.dialect;
import org.hibernate.dialect.function.SQLFunctionTemplate;
import org.hibernate.type.StandardBasicTypes;
/**
* An SQL dialect for Firebird.
*
* @author Reha CENANI
*/
public class FirebirdDialect extends InterbaseDialect {
public FirebirdDialect() {
super();
registerFunction( "replace", new SQLFunctionTemplate( StandardBasicTypes.STRING, "replace(?1, ?2, ?3)" ) );
}
@Override
public String getDropSequenceString(String sequenceName) {
return "drop generator " + sequenceName;