You've already forked mariadb-connector-c
mirror of
https://github.com/mariadb-corporation/mariadb-connector-c.git
synced 2025-08-07 02:42:49 +03:00
Fix test CONC-702
Drop procedure p2 to avoid failing mtr test
This commit is contained in:
@@ -5744,25 +5744,31 @@ end:
|
|||||||
static int test_conc702(MYSQL *ma)
|
static int test_conc702(MYSQL *ma)
|
||||||
{
|
{
|
||||||
MYSQL_STMT *stmt, *stmt2;
|
MYSQL_STMT *stmt, *stmt2;
|
||||||
|
int rc;
|
||||||
|
|
||||||
diag("Server info %s\nClient info: %s",
|
diag("Server info %s\nClient info: %s",
|
||||||
mysql_get_server_info(ma), mysql_get_client_info());
|
mysql_get_server_info(ma), mysql_get_client_info());
|
||||||
|
|
||||||
mysql_query(ma, "DROP PROCEDURE IF EXISTS p1");
|
rc= mysql_query(ma, "DROP PROCEDURE IF EXISTS p1");
|
||||||
|
check_mysql_rc(rc, ma);
|
||||||
|
|
||||||
mysql_query(ma, "CREATE PROCEDURE p1() BEGIN"
|
rc= mysql_query(ma, "CREATE PROCEDURE p1() BEGIN"
|
||||||
" SELECT 1 FROM DUAL; "
|
" SELECT 1 FROM DUAL; "
|
||||||
"END");
|
"END");
|
||||||
|
check_mysql_rc(rc, ma);
|
||||||
|
|
||||||
stmt= mysql_stmt_init(ma);
|
stmt= mysql_stmt_init(ma);
|
||||||
|
|
||||||
FAIL_IF(!stmt, "Could not allocate stmt");
|
FAIL_IF(!stmt, "Could not allocate stmt");
|
||||||
|
|
||||||
mysql_stmt_prepare(stmt, "CALL p1()", -1);
|
rc= mysql_stmt_prepare(stmt, "CALL p1()", -1);
|
||||||
mysql_stmt_execute(stmt);
|
check_stmt_rc(rc, stmt);
|
||||||
|
rc= mysql_stmt_execute(stmt);
|
||||||
|
check_stmt_rc(rc, stmt);
|
||||||
|
|
||||||
|
|
||||||
mysql_stmt_store_result(stmt);
|
mysql_stmt_store_result(stmt);
|
||||||
|
check_stmt_rc(rc, stmt);
|
||||||
|
|
||||||
// We've done everything w/ result and skip everything else
|
// We've done everything w/ result and skip everything else
|
||||||
|
|
||||||
@@ -5803,6 +5809,10 @@ static int test_conc702(MYSQL *ma)
|
|||||||
mysql_stmt_close(stmt2);
|
mysql_stmt_close(stmt2);
|
||||||
|
|
||||||
mysql_stmt_close(stmt);
|
mysql_stmt_close(stmt);
|
||||||
|
|
||||||
|
rc= mysql_query(ma, "DROP PROCEDURE p2");
|
||||||
|
check_mysql_rc(rc, ma);
|
||||||
|
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user