Skip to content

Commit

Permalink
[Branch-2.1](regression-test) fix unstable connection reset lead to c…
Browse files Browse the repository at this point in the history
…ase failure
  • Loading branch information
eldenmoon committed Jan 16, 2025
1 parent a85b5eb commit e742aa3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions regression-test/suites/prepared_stmt_p0/prepared_stmt.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -253,10 +253,6 @@ suite("test_prepared_stmt", "nonConcurrent") {
logger.info("connection_id: ${result}")
// qe_select16 stmt_read

sql """set enable_server_side_prepared_statement = false"""
def stmt_insert = prepareStatement "insert into mytable1 values(?, ?, ?, ?)"
assertEquals(stmt_insert.class, com.mysql.cj.jdbc.ClientPreparedStatement);

// test prepared with between, test placeholder equal
sql """insert into mytable2 values(3,1,'user1',10);"""
stmt_read = prepareStatement "SELECT COUNT() from mytable2 WHERE siteid between ? and ?"
Expand Down Expand Up @@ -310,4 +306,10 @@ suite("test_prepared_stmt", "nonConcurrent") {
assertEquals(com.mysql.cj.jdbc.ServerPreparedStatement, stmt_read.class)
qe_select24 stmt_read
}

def result2 = connect(user, password, url) {
sql """set enable_server_side_prepared_statement = false"""
def stmt_insert = prepareStatement "insert into mytable1 values(?, ?, ?, ?)"
assertEquals(stmt_insert.class, com.mysql.cj.jdbc.ClientPreparedStatement);
}
}

0 comments on commit e742aa3

Please sign in to comment.