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
Follow up for CONC-424:
Fixed another place where stmt->error wasn't updated correctly.
This commit is contained in:
@@ -1716,8 +1716,10 @@ int STDCALL mysql_stmt_store_result(MYSQL_STMT *stmt)
|
|||||||
|
|
||||||
if (stmt->mysql->methods->db_command(stmt->mysql, COM_STMT_FETCH,
|
if (stmt->mysql->methods->db_command(stmt->mysql, COM_STMT_FETCH,
|
||||||
buff, sizeof(buff), 1, stmt))
|
buff, sizeof(buff), 1, stmt))
|
||||||
|
{
|
||||||
|
UPDATE_STMT_ERROR(stmt);
|
||||||
return(1);
|
return(1);
|
||||||
/* todo: cursor */
|
}
|
||||||
}
|
}
|
||||||
else if (stmt->mysql->status != MYSQL_STATUS_STMT_RESULT)
|
else if (stmt->mysql->status != MYSQL_STATUS_STMT_RESULT)
|
||||||
{
|
{
|
||||||
@@ -1891,8 +1893,8 @@ int stmt_read_execute_response(MYSQL_STMT *stmt)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((stmt->upsert_status.server_status & SERVER_STATUS_CURSOR_EXISTS) &&
|
if ((stmt->upsert_status.server_status & SERVER_STATUS_CURSOR_EXISTS) &&
|
||||||
(stmt->flags & CURSOR_TYPE_READ_ONLY))
|
(stmt->flags & CURSOR_TYPE_READ_ONLY))
|
||||||
{
|
{
|
||||||
stmt->cursor_exists = TRUE;
|
stmt->cursor_exists = TRUE;
|
||||||
mysql->status = MYSQL_STATUS_READY;
|
mysql->status = MYSQL_STATUS_READY;
|
||||||
|
Reference in New Issue
Block a user