1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-08 14:02:17 +03:00

Test fixes:

- Fixed failing test when running against MySQL server
- Disabled test when running against MySQL server.
This commit is contained in:
Georg Richter
2023-08-30 07:44:32 +02:00
parent bc5cbb6f12
commit 209b23a38c

View File

@@ -5604,7 +5604,7 @@ static int test_conc623(MYSQL *mysql)
MYSQL_STMT *stmt= mysql_stmt_init(mysql); MYSQL_STMT *stmt= mysql_stmt_init(mysql);
rc= mysql_query(mysql, "CREATE OR REPLACE TEMPORARY TABLE t1 (a int)"); rc= mysql_query(mysql, "CREATE TEMPORARY TABLE t1 (a int)");
rc= mysql_stmt_attr_set(stmt, STMT_ATTR_CB_USER_DATA, mysql); rc= mysql_stmt_attr_set(stmt, STMT_ATTR_CB_USER_DATA, mysql);
check_stmt_rc(rc, stmt); check_stmt_rc(rc, stmt);
@@ -5664,11 +5664,15 @@ static int test_conc627(MYSQL *mysql)
static int test_conc633(MYSQL *mysql) static int test_conc633(MYSQL *mysql)
{ {
MYSQL_STMT *stmt= mysql_stmt_init(mysql); MYSQL_STMT *stmt;
MYSQL *my= NULL; MYSQL *my= NULL;
int ret= FAIL; int ret= FAIL;
int rc; int rc;
SKIP_MYSQL(mysql);
stmt= mysql_stmt_init(mysql);
if (!mariadb_stmt_execute_direct(stmt, SL("SÄLECT 1"))) if (!mariadb_stmt_execute_direct(stmt, SL("SÄLECT 1")))
{ {
diag("Syntax error expected"); diag("Syntax error expected");