ID: 36701
User updated by: marcin at artigo dot pl
Reported By: marcin at artigo dot pl
-Status: Feedback
+Status: Open
Bug Type: PDO related
Operating System: win xp
PHP Version: 5CVS-2006-03-12 (snap)
New Comment:
I assume you mean the DSN, well I tried many variations, but with the
same result, let me give you this one:
$this->oConn = new
PDO(sprintf('pgsql:host=%s;dbname=%s;user=%s;password=%s',
$aConfig['host'], $aConfig['name'], $aConfig['user'],
$aConfig['pass']));
Previous Comments:
------------------------------------------------------------------------
[2006-03-12 11:18:15] [EMAIL PROTECTED]
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc.
If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.
------------------------------------------------------------------------
[2006-03-12 11:03:08] marcin at artigo dot pl
pg_connect works fine and phpinfo says
PostgreSQL(libpq) Version 8.0.1
so i guess it is, isnt it?
------------------------------------------------------------------------
[2006-03-12 09:17:34] [EMAIL PROTECTED]
And you do have Postgres client libraries installed, do you?
------------------------------------------------------------------------
[2006-03-12 00:41:11] marcin at artigo dot pl
Description:
------------
I cannot get pgsql driver to work
phpinfo says:
PDO drivers no value
PDO Driver for PostgreSQL enabled
Looks like for some reason pgsql driver isnt seen, while others seem to
work fine:
PDO drivers oci, firebird
As a result I cannot create a PDO object with pgsql DSN - an exception
is thrown - "could not find driver".
Tested with latest snap and pgsql 8.1
Reproduce code:
---------------
extension=php_pdo.dll
extension=php_pdo_pgsql.dll
Expected result:
----------------
Something like
PDO drivers pgsql
would be appreciated.
Actual result:
--------------
could not find driver
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36701&edit=1