HHH-10135 - DB2Dialect should override getSelectSequenceNextValString

This commit is contained in:
Steve Ebersole 2015-09-27 08:01:26 -05:00
parent 909c034429
commit 2964ecbf1b
1 changed files with 6 additions and 0 deletions

View File

@ -13,6 +13,7 @@ import java.sql.Types;
import java.util.Locale;
import org.hibernate.JDBCException;
import org.hibernate.MappingException;
import org.hibernate.NullPrecedence;
import org.hibernate.cfg.Environment;
import org.hibernate.dialect.function.AvgWithArgumentCastFunction;
@ -232,6 +233,11 @@ public class DB2Dialect extends Dialect {
return "values nextval for " + sequenceName;
}
@Override
public String getSelectSequenceNextValString(String sequenceName) throws MappingException {
return "next value for " + sequenceName;
}
@Override
public String getCreateSequenceString(String sequenceName) {
return "create sequence " + sequenceName;