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
several fixes for mariadb_stmt_execute_direct:
- allow param binding via mysql_stmt_attr_set: mysql_stmt_attr_set(stmt, STMT_ATTR_PREBIND_PARAMS, ¶m_count); - If a prepared statement will be reexecuted, we send COM_STMT_CLOSE together with COM_STMT_PREPARE and COM_STMT_EXECUTE
This commit is contained in:
@@ -74,11 +74,11 @@ static int test_conc83(MYSQL *my)
|
||||
check_stmt_rc(rc, stmt);
|
||||
diag("Ok");
|
||||
|
||||
/* 2. Status is prepared, second prepare should fail */
|
||||
/* 2. Status is prepared, execute should fail */
|
||||
rc= mysql_kill(mysql, mysql_thread_id(mysql));
|
||||
sleep(2);
|
||||
|
||||
rc= mysql_stmt_prepare(stmt, query, -1);
|
||||
rc= mysql_stmt_execute(stmt);
|
||||
FAIL_IF(!rc, "Error expected");
|
||||
|
||||
mysql_stmt_close(stmt);
|
||||
|
Reference in New Issue
Block a user