Re: [PATCH] New PDO methods for PostgreSQL driver
| From: | Denis Gasparin | Date: | Mon, 24 May 2010 10:41:45 +0000 |
| Subject: | Re: [PATCH] New PDO methods for PostgreSQL driver | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-48425@lists.php.net to get a copy of this message | ||
Denis Gasparin wrote:
>> Hi.
>>
>> I developed some patches for PDO/Postgresql driver in order to add some useful \
>> methods that were available in the original pgsql driver.
>pdo@lists.php.net is the right place for PDO development ;)
Ops sorry :-) I will post the patches also to that list.
>But more important, any NEW functions should be generic. Otherwise why not
>simply use the pgsql driver. Proliferating different driver specific functions
>is not supposed to be happening in PDO?
I agree with you but this is not always possible.
In particular you'll need two database connections (one with the original driver and one with
PDO) in order to use the native copy* functions.
The ideal thing would be to share the connection resource between old driver and PDO one...
I tried without success this way before implementing the new PDO methods.
Thank you,
Denis