1
0
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:
diego Dupin
2022-03-23 11:46:40 +01:00
parent e10c10f05b
commit fb85d99d13
14 changed files with 222 additions and 7 deletions

View File

@@ -96,6 +96,12 @@ static int execute_direct_example(MYSQL *mysql)
bind[1].buffer= (char *)strval;
bind[1].buffer_length= (unsigned long)strlen(strval);
// https://jira.mariadb.org/browse/XPT-266
if (IS_XPAND()) {
rc= mysql_query(mysql, "SET NAMES UTF8");
check_mysql_rc(rc, mysql);
}
/* set number of parameters */
rc= mysql_stmt_attr_set(stmt, STMT_ATTR_PREBIND_PARAMS, &param_count);
check_stmt_rc(rc, stmt);