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
@@ -2240,8 +2240,8 @@ static my_bool mysql_stmt_internal_reset(MYSQL_STMT *stmt, my_bool is_close)
|
||||
{
|
||||
MYSQL *mysql= stmt->mysql;
|
||||
my_bool ret= 1;
|
||||
unsigned int flags= MADB_RESET_LONGDATA | MADB_RESET_BUFFER | MADB_RESET_ERROR,
|
||||
last_status= mysql->server_status;
|
||||
unsigned int flags= MADB_RESET_LONGDATA | MADB_RESET_BUFFER | MADB_RESET_ERROR;
|
||||
unsigned int last_status;
|
||||
|
||||
if (!mysql)
|
||||
{
|
||||
@@ -2251,6 +2251,8 @@ static my_bool mysql_stmt_internal_reset(MYSQL_STMT *stmt, my_bool is_close)
|
||||
return(1);
|
||||
}
|
||||
|
||||
last_status= mysql->server_status;
|
||||
|
||||
if (stmt->state >= MYSQL_STMT_USER_FETCHING &&
|
||||
stmt->fetch_row_func == stmt_unbuffered_fetch)
|
||||
flags|= MADB_RESET_BUFFER;
|
||||
|
Reference in New Issue
Block a user