HHH-10135 - DB2Dialect should override getSelectSequenceNextValString
(cherry picked from commit 2964ecbf1b
)
This commit is contained in:
parent
5e1c6bc3af
commit
398cec2bcc
|
@ -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;
|
||||
|
@ -250,6 +251,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;
|
||||
|
|
Loading…
Reference in New Issue