note 46478 added to ref.mysql
| From: | nleippe at integr8ted dot com | Date: | Tue, 12 Oct 2004 22:22:33 +0000 |
| Subject: | note 46478 added to ref.mysql | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-78451@lists.php.net to get a copy of this message | ||
trace_mode breaks SQL_CALC_FOUND_ROWS.
This is because it emits an EXPLAIN <query> before sending the <query> by itself, thus
the subsequent SELECT FOUND_ROWS() is no longer the next consecutive query, and the result is zero.
This was true for me for at least MySQL 4.0.21 and 4.1.5gamma.
(PHP 4.3.9)
----
Manual Page -- http://www.php.net/manual/en/ref.mysql.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+46478
Delete -- http://master.php.net/manage/user-notes.php?action=delete+46478&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+46478&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+46478&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+46478&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+46478&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+46478&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+46478&report=yes
Search -- http://master.php.net/manage/user-notes.php