|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-12-15 16:16 UTC] olivier at elma dot fr
[2006-12-18 17:57 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 14:00:01 2025 UTC |
Description: ------------ Since I upgraded from php 5.1.x to php 5.2.0 persistent connections doesn't work anymore. PDO keeps telling me the driver does not support this functionnality. Reproduce code: --------------- <?php try { $dbh = new PDO('pgsql:host=localhost dbname=amarok user=slaanesh', 'slaanesh', 'XXXXXX', array(PDO::ATTR_PERSISTENT => true)); echo "Connected\n"; } catch (Exception $e) { echo "Failure: " . $e->getMessage(); } ?> Expected result: ---------------- Connected Actual result: -------------- Warning: PDO::__construct(): SQLSTATE[IM001]: Driver does not support this function: driver does not support setting attributes in /home/slaanesh/pdo.php on line 3 Connected