summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/mysqlnd/mysqlnd.c4
-rw-r--r--ext/mysqlnd/mysqlnd_structs.h1
2 files changed, 0 insertions, 5 deletions
diff --git a/ext/mysqlnd/mysqlnd.c b/ext/mysqlnd/mysqlnd.c
index e8449e057e..904a310dba 100644
--- a/ext/mysqlnd/mysqlnd.c
+++ b/ext/mysqlnd/mysqlnd.c
@@ -399,10 +399,6 @@ mysqlnd_simple_command(MYSQLND *conn, enum php_mysqlnd_server_command command,
SET_ERROR_AFF_ROWS(conn);
SET_EMPTY_ERROR(conn->error_info);
- if (command == COM_QUERY) {
- ++conn->query_counter;
- }
-
PACKET_INIT_ALLOCA(cmd_packet, PROT_CMD_PACKET);
cmd_packet.command = command;
if (arg && arg_len) {
diff --git a/ext/mysqlnd/mysqlnd_structs.h b/ext/mysqlnd/mysqlnd_structs.h
index af1cdd1a5e..9612fa3fce 100644
--- a/ext/mysqlnd/mysqlnd_structs.h
+++ b/ext/mysqlnd/mysqlnd_structs.h
@@ -425,7 +425,6 @@ struct st_mysqlnd_connection
*/
enum mysqlnd_connection_state state;
enum_mysqlnd_query_type last_query_type;
- uint32_t query_counter;
/* Temporary storage between query and (use|store)_result() call */
MYSQLND_RES *current_result;