note 79177 added to function.PDOStatement-rowCount

From: Date: Wed, 14 Nov 2007 15:06:29 +0000
Subject: note 79177 added to function.PDOStatement-rowCount
Groups: php.notes 
Request: Send a blank email to php-notes+get-132272@lists.php.net to get a copy of this message
To Matt, PDO is very similar in design to Perl's DBI which does allow you to set driver specific attributes such as mysql_client_found_rows=1 as part of the DSN. PDO has a setAttribute() method, but afaik there is no MYSQL_ATTR_CLIENT_FOUND_ROWS constant (yet). Hopefully some PDO developer will patch it in one day. Setting that (at least in Perl and C) will make rowCount() return the number of rows selected for the update, not just the number of rows actually updated. ---- Server IP: 69.147.83.197 Probable Submitter: 62.45.52.209 ---- Manual Page -- http://www.php.net/manual/en/function.PDOStatement-rowCount.php Edit -- https://master.php.net/note/edit/79177 Del: integrated -- https://master.php.net/note/delete/79177/integrated Del: useless -- https://master.php.net/note/delete/79177/useless Del: bad code -- https://master.php.net/note/delete/79177/bad+code Del: spam -- https://master.php.net/note/delete/79177/spam Del: non-english -- https://master.php.net/note/delete/79177/non-english Del: in docs -- https://master.php.net/note/delete/79177/in+docs Del: other reasons-- https://master.php.net/note/delete/79177 Reject -- https://master.php.net/note/reject/79177 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#132272) next »