PgSql PDO

I am not able to get this working...
1. pdo_pgsql.so exists in the extensions directory and is referenced
in the ini file.
2. phpinfo() shows that support for both pgsql and pdo_pgsql is enabled.
3. PDO::getAvailableDrivers() lists pgsql as avilable driver.
4. I am able to connect via pgsql_connect()

pdo_pgsql::_construct() is throwing an PDO_Exception "could not find driver"

am I missing something here ? pls help

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
kranthi [ Sa, 12 September 2009 06:11 ] [ ID #2015582 ]

Re: PgSql PDO

kranthi wrote:
> I am not able to get this working...
> 1. pdo_pgsql.so exists in the extensions directory and is referenced
> in the ini file.
> 2. phpinfo() shows that support for both pgsql and pdo_pgsql is enabled.
> 3. PDO::getAvailableDrivers() lists pgsql as avilable driver.
> 4. I am able to connect via pgsql_connect()
>
> pdo_pgsql::_construct() is throwing an PDO_Exception "could not find driver"
>
> am I missing something here ? pls help

Perhaps you could show the code. You should be using =new rather than
_construct() I think.

--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Lester Caine [ Sa, 12 September 2009 07:06 ] [ ID #2015583 ]

Re: PgSql PDO

> Try
> "pgsql:"
> This is case sensitive ;)
> ( I'm messing around at the same level with the firsbird driver :) )

Yeh it worked. Thanks.
But i remember seeing Pgsql somewhere in the docs...

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
kranthi [ Sa, 12 September 2009 13:57 ] [ ID #2015587 ]
PHP » gmane.comp.php.database » PgSql PDO

Vorheriges Thema: mysql_query returning empty result after DELETE
Nächstes Thema: What's the number scheme for 'colno' for Select call in PDO driver