php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #62782 Allow PDO::MYSQL_ATTR_FOUND_ROWS in $driver_options argument of PDO->prepare()
Submitted: 2012-08-08 17:12 UTC Modified: 2017-03-01 22:48 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:2 (100.0%)
From: cmanley at xs4all dot nl Assigned:
Status: Open Package: PDO MySQL
PHP Version: 5.3.15 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: cmanley at xs4all dot nl
New email:
PHP Version: OS:

 

 [2012-08-08 17:12 UTC] 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.



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-03-01 22:48 UTC] adambaratz@php.net
-Package: PDO related +Package: PDO MySQL
 [2017-09-27 07:59 UTC] 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.
 
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Mon Jun 18 11:01:59 2018 UTC