Fix identity select statement caching

This commit is contained in:
Christian Beikov 2023-01-04 12:29:51 +01:00
parent e3f1c2741d
commit 85a96de131
1 changed files with 2 additions and 2 deletions

View File

@ -833,7 +833,7 @@ public abstract class AbstractEntityPersister
}
private String getIdentitySelectString(Dialect dialect) {
if ( dialect.getIdentityColumnSupport().supportsInsertSelectIdentity() ) {
try {
return dialect.getIdentityColumnSupport()
.getIdentitySelectString(
getTableName(0),
@ -841,7 +841,7 @@ public abstract class AbstractEntityPersister
( (BasicType<?>) getIdentifierType() ).getJdbcType().getDdlTypeCode()
);
}
else {
catch (MappingException ex) {
return null;
}
}