From: Andrey Hristov Date: Tue, 6 Sep 2011 14:48:43 +0000 (+0000) Subject: add query information to the trace log X-Git-Tag: php-5.5.0alpha1~1271 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4f0b4031fe4b545bef934c13b20a931b3d7d9bcc;p=php add query information to the trace log --- diff --git a/ext/mysqlnd/mysqlnd_ps.c b/ext/mysqlnd/mysqlnd_ps.c index e18e0aa3b4..c63fe9ffa8 100644 --- a/ext/mysqlnd/mysqlnd_ps.c +++ b/ext/mysqlnd/mysqlnd_ps.c @@ -385,6 +385,7 @@ MYSQLND_METHOD(mysqlnd_stmt, prepare)(MYSQLND_STMT * const s, const char * const DBG_RETURN(FAIL); } DBG_INF_FMT("stmt=%lu", stmt->stmt_id); + DBG_INF_FMT("query=%s", query); SET_ERROR_AFF_ROWS(stmt); SET_ERROR_AFF_ROWS(stmt->conn);