This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-2.1 by this push:
     new 29bcb249eb2 [Branch-2.1](regression-test) fix unstable connection 
reset lead to case failure (#47073)
29bcb249eb2 is described below

commit 29bcb249eb26403a30aeb46a2d684ee486e157a2
Author: lihangyu <[email protected]>
AuthorDate: Thu Jan 16 17:37:10 2025 +0800

    [Branch-2.1](regression-test) fix unstable connection reset lead to case 
failure (#47073)
---
 regression-test/suites/prepared_stmt_p0/prepared_stmt.groovy | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/regression-test/suites/prepared_stmt_p0/prepared_stmt.groovy 
b/regression-test/suites/prepared_stmt_p0/prepared_stmt.groovy
index 53b83ed7335..fea781ff0b7 100644
--- a/regression-test/suites/prepared_stmt_p0/prepared_stmt.groovy
+++ b/regression-test/suites/prepared_stmt_p0/prepared_stmt.groovy
@@ -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 ?"
@@ -265,7 +261,6 @@ suite("test_prepared_stmt", "nonConcurrent") {
         stmt_read.setInt(2, 3)
         qe_select17 stmt_read
 
-
         // test array1
         stmt_read = prepareStatement """SELECT 1, [1, 2, 3], null, ["1"], 
null, null, [1.111]"""
         assertEquals(com.mysql.cj.jdbc.ServerPreparedStatement, 
stmt_read.class)
@@ -310,4 +305,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);
+    }
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to