Re: [PATCH] New PDO methods for PostgreSQL driver
| From: | Lester Caine | Date: | Mon, 24 May 2010 10:49:46 +0000 |
| Subject: | Re: [PATCH] New PDO methods for PostgreSQL driver | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-48426@lists.php.net to get a copy of this message | ||
Denis Gasparin wrote:
That is my 'complaint' about PDO in general .... Some of the facilities provided by Firebird simply can't be implemented inside PDO at all. Cross connection transactions for instance. The core of PDO needs something of an overhaul to allow it to play well with the 'old drivers' since it only the 'old drivers' that people ARE developing ... rather than adding new features directly into PDO. -- 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.phpI 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.