mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 08:35:13 +00:00
HHH-13926 Remove no longer used parameters
This commit is contained in:
parent
3a2283335e
commit
c8fabbb2b0
@ -48,14 +48,14 @@ protected BasicExpectation(int expectedRowCount) {
|
|||||||
public final void verifyOutcome(int rowCount, PreparedStatement statement, int batchPosition, String statementSQL) {
|
public final void verifyOutcome(int rowCount, PreparedStatement statement, int batchPosition, String statementSQL) {
|
||||||
rowCount = determineRowCount( rowCount, statement );
|
rowCount = determineRowCount( rowCount, statement );
|
||||||
if ( batchPosition < 0 ) {
|
if ( batchPosition < 0 ) {
|
||||||
checkNonBatched( rowCount, statement, statementSQL );
|
checkNonBatched( rowCount, statementSQL );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
checkBatched( rowCount, batchPosition, statement, statementSQL );
|
checkBatched( rowCount, batchPosition, statementSQL );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void checkBatched(int rowCount, int batchPosition, PreparedStatement statement, String statementSQL) {
|
private void checkBatched(int rowCount, int batchPosition, String statementSQL) {
|
||||||
if ( rowCount == -2 ) {
|
if ( rowCount == -2 ) {
|
||||||
LOG.debugf( "Success of batch update unknown: %s", batchPosition );
|
LOG.debugf( "Success of batch update unknown: %s", batchPosition );
|
||||||
}
|
}
|
||||||
@ -80,7 +80,7 @@ else if ( rowCount == -3 ) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void checkNonBatched(int rowCount, PreparedStatement statement, String statementSQL) {
|
private void checkNonBatched(int rowCount, String statementSQL) {
|
||||||
if ( expectedRowCount > rowCount ) {
|
if ( expectedRowCount > rowCount ) {
|
||||||
throw new StaleStateException(
|
throw new StaleStateException(
|
||||||
"Unexpected row count: " + rowCount + "; expected: " + expectedRowCount
|
"Unexpected row count: " + rowCount + "; expected: " + expectedRowCount
|
||||||
|
Loading…
x
Reference in New Issue
Block a user