summaryrefslogtreecommitdiff
path: root/ext/mysqlnd/mysqlnd_ps.c
diff options
context:
space:
mode:
authorDharman <tekiela246@gmail.com>2021-03-05 21:45:27 +0000
committerNikita Popov <nikita.ppv@gmail.com>2021-03-15 14:38:09 +0100
commitc93b461ad70e341f1b01f5910f3cfc3055a3941e (patch)
tree91bc752ce5578b0a4e7643704361c202ae008889 /ext/mysqlnd/mysqlnd_ps.c
parentfc4cd598a254c3f8ceae1fc3bb8d528dd754ce7b (diff)
downloadphp-git-c93b461ad70e341f1b01f5910f3cfc3055a3941e.tar.gz
Fix bug #80837
The error needs to be reported on the statement, not the connection.
Diffstat (limited to 'ext/mysqlnd/mysqlnd_ps.c')
-rw-r--r--ext/mysqlnd/mysqlnd_ps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mysqlnd/mysqlnd_ps.c b/ext/mysqlnd/mysqlnd_ps.c
index 12aace6ec2..ce0ad01c8a 100644
--- a/ext/mysqlnd/mysqlnd_ps.c
+++ b/ext/mysqlnd/mysqlnd_ps.c
@@ -92,7 +92,7 @@ MYSQLND_METHOD(mysqlnd_stmt, store_result)(MYSQLND_STMT * const s)
/* Nothing to store for UPSERT/LOAD DATA*/
if (!mysqlnd_stmt_check_state(stmt)) {
- SET_CLIENT_ERROR(conn->error_info, CR_COMMANDS_OUT_OF_SYNC, UNKNOWN_SQLSTATE, mysqlnd_out_of_sync);
+ SET_CLIENT_ERROR(stmt->error_info, CR_COMMANDS_OUT_OF_SYNC, UNKNOWN_SQLSTATE, mysqlnd_out_of_sync);
DBG_RETURN(NULL);
}