You've already forked mariadb-connector-c
mirror of
https://github.com/mariadb-corporation/mariadb-connector-c.git
synced 2025-08-05 15:55:58 +03:00
Adding xpand to test suite
This commit is contained in:
@@ -29,6 +29,8 @@ static int test_client_warnings(MYSQL *mysql)
|
||||
{
|
||||
int rc;
|
||||
|
||||
SKIP_XPAND;
|
||||
|
||||
rc= mysql_query(mysql, "DROP TABLE if exists test_non_exists");
|
||||
check_mysql_rc(rc, mysql);
|
||||
rc= mysql_query(mysql, "DROP TABLE if exists test_non_exists");
|
||||
@@ -44,6 +46,9 @@ static int test_ps_client_warnings(MYSQL *mysql)
|
||||
{
|
||||
int rc;
|
||||
MYSQL_STMT *stmt;
|
||||
|
||||
SKIP_XPAND;
|
||||
|
||||
const char *query= "DROP TABLE IF EXISTS test_non_exists";
|
||||
|
||||
rc= mysql_query(mysql, "DROP TABLE if exists test_non_exists");
|
||||
@@ -68,6 +73,8 @@ static int test_server_warnings(MYSQL *mysql)
|
||||
int rc;
|
||||
MYSQL_RES *result;
|
||||
|
||||
SKIP_XPAND;
|
||||
|
||||
rc= mysql_query(mysql, "DROP TABLE if exists test_non_exists");
|
||||
check_mysql_rc(rc, mysql);
|
||||
rc= mysql_query(mysql, "DROP TABLE if exists test_non_exists");
|
||||
@@ -256,6 +263,9 @@ static int test_parse_error_and_bad_length(MYSQL *mysql)
|
||||
stmt= mysql_stmt_init(mysql);
|
||||
FAIL_UNLESS(stmt, "");
|
||||
memset(stmt_str, 0, 100);
|
||||
|
||||
SKIP_XPAND;
|
||||
|
||||
strcpy(stmt_str, "SHOW DATABASES");
|
||||
rc= mysql_stmt_prepare(stmt, stmt_str, 99);
|
||||
FAIL_IF(!rc, "Error expected");
|
||||
|
Reference in New Issue
Block a user