[HHH-8941] add SQLFunctionTemplate for replace() to FirebirdDialect
This commit is contained in:
parent
c012c4d8de
commit
54cc9073f4
|
@ -23,10 +23,12 @@
|
||||||
*/
|
*/
|
||||||
package org.hibernate.dialect;
|
package org.hibernate.dialect;
|
||||||
|
|
||||||
|
import org.hibernate.dialect.function.StandardSQLFunction;
|
||||||
import org.hibernate.dialect.pagination.AbstractLimitHandler;
|
import org.hibernate.dialect.pagination.AbstractLimitHandler;
|
||||||
import org.hibernate.dialect.pagination.LimitHandler;
|
import org.hibernate.dialect.pagination.LimitHandler;
|
||||||
import org.hibernate.dialect.pagination.LimitHelper;
|
import org.hibernate.dialect.pagination.LimitHelper;
|
||||||
import org.hibernate.engine.spi.RowSelection;
|
import org.hibernate.engine.spi.RowSelection;
|
||||||
|
import org.hibernate.type.StandardBasicTypes;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An SQL dialect for Firebird.
|
* An SQL dialect for Firebird.
|
||||||
|
@ -34,6 +36,12 @@ import org.hibernate.engine.spi.RowSelection;
|
||||||
* @author Reha CENANI
|
* @author Reha CENANI
|
||||||
*/
|
*/
|
||||||
public class FirebirdDialect extends InterbaseDialect {
|
public class FirebirdDialect extends InterbaseDialect {
|
||||||
|
|
||||||
|
public FirebirdDialect() {
|
||||||
|
super();
|
||||||
|
registerFunction( "replace", new SQLFunctionTemplate( StandardBasicTypes.STRING, "replace(?1, ?2, ?3)" ) );
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getDropSequenceString(String sequenceName) {
|
public String getDropSequenceString(String sequenceName) {
|
||||||
return "drop generator " + sequenceName;
|
return "drop generator " + sequenceName;
|
||||||
|
|
Loading…
Reference in New Issue