Skip to content

Commit

Permalink
HHH-17862 Fix TemporaryTable identity column sqlTypeName error
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimír Kuruc authored and beikov committed Mar 27, 2024
1 parent 975f471 commit 49f27dc
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -319,15 +319,17 @@ public static TemporaryTable createEntityTable(
int idIdx = 0;
for ( Column column : entityBinding.getKey().getColumns() ) {
final JdbcMapping jdbcMapping = identifierMapping.getJdbcMapping( idIdx++ );
String sqlTypeName = "";
if ( dialect.getIdentityColumnSupport().hasDataTypeInIdentityColumn() ) {
sqlTypeName = column.getSqlType( runtimeModelCreationContext.getMetadata() ) + " ";
}
sqlTypeName = sqlTypeName + dialect.getIdentityColumnSupport().getIdentityColumnString( column.getSqlTypeCode( runtimeModelCreationContext.getMetadata() ) );
columns.add(
new TemporaryTableColumn(
temporaryTable,
ENTITY_TABLE_IDENTITY_COLUMN,
jdbcMapping,
column.getSqlType(
runtimeModelCreationContext.getMetadata()
) + " " +
dialect.getIdentityColumnSupport().getIdentityColumnString( column.getSqlTypeCode( runtimeModelCreationContext.getMetadata() ) ),
sqlTypeName,
column.getColumnSize(
dialect,
runtimeModelCreationContext.getMetadata()
Expand Down

0 comments on commit 49f27dc

Please sign in to comment.