Req #62782 [Opn->Wfx]: Allow PDO::MYSQL_ATTR_FOUND_ROWS in $driver_options argument of PDO->prepare()
| From: | nikic@php.net | Date: | Thu, 10 Dec 2020 12:03:27 +0000 |
| Subject: | Req #62782 [Opn->Wfx]: Allow PDO::MYSQL_ATTR_FOUND_ROWS in $driver_options argument of PDO->prepare() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-230992@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=62782&edit=1
ID: 62782
Updated by: nikic@php.net
Reported by: cmanley at xs4all dot nl
Summary: Allow PDO::MYSQL_ATTR_FOUND_ROWS in $driver_options
argument of PDO->prepare()
-Status: Open
+Status: Wont fix
Type: Feature/Change Request
Package: PDO MySQL
PHP Version: 5.3.15
Block user comment: N
Private report: N
New Comment:
Indeed, this is an option that must be specified when establishing the connection to the server.
Supporting it in PDO::prepare() is technically not possible.
Previous Comments:
------------------------------------------------------------------------
[2017-09-27 07:59:33] col dot shrapnel at gmail dot com
Given CLIENT_FOUND_ROWS is a connection option that can be used with mysql_real_connect() only,
there is no way to change its value on the fly, so this issue can be closed as not a bug.
------------------------------------------------------------------------
[2012-08-08 17:12:54] cmanley at xs4all dot nl
Description:
------------
Currently PDO::MYSQL_ATTR_FOUND_ROWS is supported as an option in the PDO
constructor.
It would be even better if this option was additionally supported in the
$driver_options argument of PDO->prepare().
The reason being that the option can be applied only locally where needed, and not
in all statements executed by the current PDO object with the possibility of
wreaking havoc in larger applications that share a PDO connection object.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=62782&edit=1