You've already forked mariadb-connector-c
mirror of
https://github.com/mariadb-corporation/mariadb-connector-c.git
synced 2025-08-08 14:02:17 +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:
@@ -56,7 +56,8 @@ enum enum_stmt_attr_type
|
||||
{
|
||||
STMT_ATTR_UPDATE_MAX_LENGTH,
|
||||
STMT_ATTR_CURSOR_TYPE,
|
||||
STMT_ATTR_PREFETCH_ROWS
|
||||
STMT_ATTR_PREFETCH_ROWS,
|
||||
STMT_ATTR_PREBIND_PARAMS=200
|
||||
};
|
||||
|
||||
enum enum_cursor_type
|
||||
@@ -172,7 +173,7 @@ typedef int (*mysql_stmt_fetch_row_func)(MYSQL_STMT *stmt, unsigned char **row)
|
||||
|
||||
struct st_mysql_stmt
|
||||
{
|
||||
MA_MEM_ROOT mem_root;
|
||||
MA_MEM_ROOT mem_root;
|
||||
MYSQL *mysql;
|
||||
unsigned long stmt_id;
|
||||
unsigned long flags;/* cursor is set here */
|
||||
|
Reference in New Issue
Block a user