#39845 [Opn]: Persistent connections and PostgreSQL

From: Date: Fri, 15 Dec 2006 16:16:06 +0000
Subject: #39845 [Opn]: Persistent connections and PostgreSQL
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-106401@lists.php.net to get a copy of this message
ID: 39845 User updated by: olivier at elma dot fr Reported By: olivier at elma dot fr Status: Open Bug Type: PDO related Operating System: Debian unstable PHP Version: 5.2.0 New Comment: Just to be more specific about my php version: $ php --version PHP 5.2.0-7 (cli) (built: Nov 24 2006 14:36:54) Copyright (c) 1997-2006 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies Previous Comments: ------------------------------------------------------------------------ [2006-12-15 16:09:29] olivier at elma dot fr 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=39845&edit=1

« previous php.bugs (#106401) next »