Skip to content

Revert "RowId ignored during deletes" #1763

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 15, 2023

Conversation

DavideD
Copy link
Member

@DavideD DavideD commented Sep 15, 2023

Reverts #1762

Sorry, merged by mistake

Comment on lines +69 to +74
operationGroup.forEachOperation( (position, mutation) -> {
if ( mutation != null ) {
final String tableName = mutation.getTableDetails().getTableName();
mutationExecutor.getPreparedStatementDetails( tableName );
}
}
} );

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation

Invoking [MutationOperationGroup.forEachOperation](1) should be avoided because it has been deprecated.
Comment on lines +107 to +119
operationGroup.forEachOperation( (position, jdbcMutation) -> {
final EntityTableMapping tableDetails = (EntityTableMapping) jdbcMutation.getTableDetails();
breakDownKeyJdbcValues( id, rowId, session, jdbcValueBindings, tableDetails );
breakDownIdJdbcValues( id, rowId, session, jdbcValueBindings, rowIdMapping, tableDetails );
final PreparedStatementDetails statementDetails = mutationExecutor.getPreparedStatementDetails( tableDetails.getTableName() );
if ( statementDetails != null ) {
PreparedStatementAdaptor.bind( statement -> {
PrepareStatementDetailsAdaptor detailsAdaptor = new PrepareStatementDetailsAdaptor(
statementDetails,
statement,
session.getJdbcServices()
);
PrepareStatementDetailsAdaptor detailsAdaptor = new PrepareStatementDetailsAdaptor( statementDetails, statement, session.getJdbcServices() );
// force creation of the PreparedStatement
//noinspection resource
detailsAdaptor.resolveStatement();
} );
}
}
} );

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation

Invoking [MutationOperationGroup.forEachOperation](1) should be avoided because it has been deprecated.
Comment on lines +131 to +135
getStaticDeleteGroup().forEachOperation( (position, mutation) -> {
if ( mutation != null ) {
mutationExecutor.getPreparedStatementDetails( mutation.getTableDetails().getTableName() );
}
}
} );

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation

Invoking [MutationOperationGroup.forEachOperation](1) should be avoided because it has been deprecated.
@DavideD DavideD merged commit fee89e9 into main Sep 15, 2023
@DavideD DavideD deleted the revert-1762-updates-after-HHH-17167 branch September 15, 2023 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant