Skip to content

Commit 93e2e2c

Browse files
committed
Fix for ConnectionRegressionTest.testBug102404() failure when running with a server with GTIDs enabled.
Change-Id: I71c334473cb04a7a7588fab9c4fd0357db0e9a32
1 parent f9b9936 commit 93e2e2c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/test/java/testsuite/regression/ConnectionRegressionTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11447,10 +11447,9 @@ public void testBug102404() throws Exception {
1144711447
* Check SESSION_TRACK_TRANSACTION_STATE, SESSION_TRACK_TRANSACTION_CHARACTERISTICS and SESSION_TRACK_GTIDS.
1144811448
* SESSION_TRACK_GTIDS requires the server configured for replication with GTIDs.
1144911449
*/
11450-
this.rs = testStmt.executeQuery("SELECT @@gtid_mode, @@log_bin, @@enforce_gtid_consistency");
11450+
this.rs = testStmt.executeQuery("SELECT @@gtid_mode, @@log_bin");
1145111451
this.rs.next();
11452-
boolean checkGTIDs = "ON".equalsIgnoreCase(this.rs.getString(1)) && "1".equalsIgnoreCase(this.rs.getString(2))
11453-
&& "ON".equalsIgnoreCase(this.rs.getString(3));
11452+
boolean checkGTIDs = this.rs.getString(1).startsWith("ON") && "1".equalsIgnoreCase(this.rs.getString(2));
1145411453
System.out.println("\n=== Test SESSION_TRACK_TRANSACTION_STATE, SESSION_TRACK_TRANSACTION_CHARACTERISTICS and SESSION_TRACK_GTIDS ===");
1145511454

1145611455
createTable(testStmt, "testBug102404", "(val varchar(10))");

0 commit comments

Comments
 (0)