mirror of
https://github.com/php/php-src.git
synced 2026-04-29 19:23:22 +02:00
Fix a bug that let PDO fail. It has been long fixed, but locally. Now I know
what it fixes :)
This commit is contained in:
@@ -521,8 +521,8 @@ mysqlnd_query_read_result_set_header(MYSQLND *conn, MYSQLND_STMT *stmt TSRMLS_DC
|
||||
conn->last_query_type = QUERY_SELECT;
|
||||
CONN_SET_STATE(conn, CONN_FETCHING_DATA);
|
||||
/* PS has already allocated it */
|
||||
conn->field_count = rset_header.field_count;
|
||||
if (!stmt) {
|
||||
conn->field_count = rset_header.field_count;
|
||||
result =
|
||||
conn->current_result=
|
||||
mysqlnd_result_init(rset_header.field_count,
|
||||
@@ -536,7 +536,6 @@ mysqlnd_query_read_result_set_header(MYSQLND *conn, MYSQLND_STMT *stmt TSRMLS_DC
|
||||
prepared statements can't send result set metadata for these queries
|
||||
on prepare stage. Read it now.
|
||||
*/
|
||||
conn->field_count = rset_header.field_count;
|
||||
result =
|
||||
stmt->result =
|
||||
mysqlnd_result_init(rset_header.field_count,
|
||||
|
||||
Reference in New Issue
Block a user