diff options
author | Andrey Hristov <andrey@php.net> | 2009-10-06 10:33:23 +0000 |
---|---|---|
committer | Andrey Hristov <andrey@php.net> | 2009-10-06 10:33:23 +0000 |
commit | d9382399fccb76d052811e959367ec159a492ec5 (patch) | |
tree | 4cda17075ace65b2c4f50564d1d9c4b7121f85c6 /ext/mysqlnd/mysqlnd.c | |
parent | d7b5703eab40c3cca5708f896931e4f46c51271e (diff) | |
download | php-git-d9382399fccb76d052811e959367ec159a492ec5.tar.gz |
count the queries
Diffstat (limited to 'ext/mysqlnd/mysqlnd.c')
-rw-r--r-- | ext/mysqlnd/mysqlnd.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/mysqlnd/mysqlnd.c b/ext/mysqlnd/mysqlnd.c index 904a310dba..e8449e057e 100644 --- a/ext/mysqlnd/mysqlnd.c +++ b/ext/mysqlnd/mysqlnd.c @@ -399,6 +399,10 @@ 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) { |