note 58537 added to function.pdostatement-rowcount

From: Date: Mon, 07 Nov 2005 19:57:04 +0000
Subject: note 58537 added to function.pdostatement-rowcount
Groups: php.notes 
Request: Send a blank email to php-notes+get-98208@lists.php.net to get a copy of this message
It is recommended that the pre-SELECT COUNT(*) method not be used, and it shouldn't be considered a viable solution. Given the time between executing the COUNT(*) statement, and the actual SELECT statement, you are very likely to get different results. This should not be considered a workaround in what is a design flaw in PDO and I'm surprised to see the PHP documentation team make such a recommendation. ---- Manual Page -- http://www.php.net/manual/en/function.pdostatement-rowcount.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+58537 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+58537&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+58537&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+58537&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+58537&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+58537&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+58537&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+58537&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+58537&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#98208) next »