PgSql PDO

PgSql PDO

am 12.09.2009 06:11:11 von kranthi

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

Re: PgSql PDO

am 12.09.2009 07:06:40 von Lester Caine

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

Re: PgSql PDO

am 12.09.2009 13:57:56 von kranthi

> 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