Bug #38182 [Com]: PDO::ATTR_TIMEOUT can be set but not retrieved
| From: | alix dot axel at gmail dot com | Date: | Sun, 12 May 2013 01:01:44 +0000 |
| Subject: | Bug #38182 [Com]: PDO::ATTR_TIMEOUT can be set but not retrieved | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-178893@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=38182&edit=1
ID: 38182
Comment by: alix dot axel at gmail dot com
Reported by: auroraeosrose at gmail dot com
Summary: PDO::ATTR_TIMEOUT can be set but not retrieved
Status: Wont fix
Type: Bug
Package: PDO related
Operating System: WinXPSP2
PHP Version: 5CVS-2006-07-21 (snap)
Assigned To: wez
Block user comment: N
Private report: N
New Comment:
With the latest version of SQLite, you can just do:
PRAGMA busy_timeout;
It's probably true for older versions as well.
Previous Comments:
------------------------------------------------------------------------
[2006-07-23 07:15:12] wez@php.net
as a matter of fact, this option is write-only; setting it simply maps to a call to:
int sqlite3_busy_timeout(sqlite3*, int ms);
there is no corresponding API for returning this value.
Now, IMO, there is no *good* reason that I can think of where you need this information.
The default is 60 seconds, which is a decent default.
------------------------------------------------------------------------
[2006-07-21 20:56:19] auroraeosrose at gmail dot com
Description:
------------
sqlite (v. 3) driver
$handle->setAttribute(PDO::ATTR_TIMEOUT, 3);
works just fine but
$handle->getAttribute(PDO::ATTR_TIMEOUT);
creates
Warning: PDO::getAttribute(): SQLSTATE[IM001]: Driver does not support this function: driver does
not support that attribute
maybe it's just me - but if you can set the attribute shouldn't you be able to retrieve it
as well?
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=38182&edit=1