note 103031 deleted from mysql.configuration by danbrown

From: Date: Mon, 21 Mar 2011 20:49:01 +0000
Subject: note 103031 deleted from mysql.configuration by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-178061@lists.php.net to get a copy of this message
Note Submitter: mauriciocramos at gmail dot com ---- When mysql.trace_mode = On, SELECT FOUND_ROWS() allway returns 0. In detail: If you have a table with 5 rows and issue: SELECT SQL_CALC_FOUND_ROWS * FROM table LIMIT 1; mysql_num_rows() returns 1 as expected. If you issue "SELECT FOUND_ROWS()" just in sequence, in the same connection resource, it allways returns 0 rather than expected 5. Just switch mysql.trace_mode to Off and things will work.

« previous php.notes (#178061) next »