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
Adding xpand to test suite
This commit is contained in:
@@ -450,6 +450,12 @@ static int test_bug10794(MYSQL *mysql)
|
||||
int i= 0;
|
||||
ulong type;
|
||||
|
||||
// https://jira.mariadb.org/browse/XPT-266
|
||||
if (IS_XPAND()) {
|
||||
rc= mysql_query(mysql, "SET NAMES UTF8");
|
||||
check_mysql_rc(rc, mysql);
|
||||
}
|
||||
|
||||
rc= mysql_query(mysql, "drop table if exists t1");
|
||||
check_mysql_rc(rc, mysql);
|
||||
rc= mysql_query(mysql, "create table t1 (id integer not null primary key,"
|
||||
@@ -477,6 +483,7 @@ static int test_bug10794(MYSQL *mysql)
|
||||
rc= mysql_stmt_execute(stmt);
|
||||
check_stmt_rc(rc, stmt);
|
||||
}
|
||||
|
||||
stmt_text= "select name from t1";
|
||||
rc= mysql_stmt_prepare(stmt, SL(stmt_text));
|
||||
type= (ulong) CURSOR_TYPE_READ_ONLY;
|
||||
@@ -725,6 +732,13 @@ static int test_bug11656(MYSQL *mysql)
|
||||
my_bind[i].buffer= (uchar* *)&buf[i];
|
||||
my_bind[i].buffer_length= (unsigned long)strlen(buf[i]);
|
||||
}
|
||||
|
||||
// https://jira.mariadb.org/browse/XPT-266
|
||||
if (IS_XPAND()) {
|
||||
rc= mysql_query(mysql, "SET NAMES UTF8");
|
||||
check_mysql_rc(rc, mysql);
|
||||
}
|
||||
|
||||
rc= mysql_stmt_bind_param(stmt, my_bind);
|
||||
check_stmt_rc(rc, stmt);
|
||||
|
||||
@@ -1378,6 +1392,9 @@ static int test_bug24179(MYSQL *mysql)
|
||||
int rc;
|
||||
MYSQL_STMT *stmt;
|
||||
|
||||
// works with xpand
|
||||
SKIP_XPAND;
|
||||
|
||||
stmt= open_cursor(mysql, "select 1 into @a");
|
||||
rc= mysql_stmt_execute(stmt);
|
||||
FAIL_UNLESS(rc, "Error expected");
|
||||
|
Reference in New Issue
Block a user