Skip to content

Commit 8d952e1

Browse files
authored
fix: redundant reset statement called due to incorrect condition (#435)
1 parent 9e29f44 commit 8d952e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/core-impl/java/com/mysql/cj/ServerPreparedQuery.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ public void clearParameters(boolean clearServerParameters) {
556556

557557
if (this.queryBindings != null) {
558558
hadLongData = this.queryBindings.clearBindValues();
559-
this.queryBindings.setLongParameterSwitchDetected(clearServerParameters && hadLongData ? false : true);
559+
this.queryBindings.setLongParameterSwitchDetected(clearServerParameters && hadLongData);
560560
}
561561

562562
if (clearServerParameters && hadLongData) {

0 commit comments

Comments
 (0)