Re: Re: [PDO] Re: [PHP-DEV] Re: [PDO] Re: [PHP-DEV] [PATCH] New PDO methods for PostgreSQL driver
| From: | Alexey Zakhlestin | Date: | Mon, 14 Jun 2010 08:00:34 +0000 |
| Subject: | Re: Re: [PDO] Re: [PHP-DEV] Re: [PDO] Re: [PHP-DEV] [PATCH] New PDO methods for PostgreSQL driver | ||
| References: | 1 2 3 4 | Groups: | php.internals php.pdo |
| Request: | Send a blank email to internals+get-48766@lists.php.net to get a copy of this message | ||
On 14.06.2010, at 11:28, Ferenc Kovacs wrote:
> quoting Denis:
>
> "Actually all the methods are wrappers against the native PostgreSQL
> commands (connection status, copy to/from).
>
> I needed to develop them as methods because it is not possible to get the
> same results with a sql statement (in particular for connection status).
>
> It was not possible also for COPY TO/FROM because of the way PostgreSQL
> handle them ( special functions were developed also for the old pgsql
> driver)."
>
> I don't know sqlite or IBM, but the MySQL SELECT INTO OUTFILE is a plain SQL
> statement, you don't need any special pdo function to use it, on the other
> hand, you can't use the postgresql's COPY TO/FROM with PDO without the patch
> above.
> Did I misunderstood something?
well, even if it's possible to do as "sql" in mysql, it is still possible to
implement as the method.
p.s. actually, as we're talking about "trunk" it is still possible to implement these
methods in generic fashion.
I can provide implementation for pdo_mysql (unless anyone else will be faster).
does anyone know enough about ibm's api to provide implementation for it?
--
Alexey Zakhlestin
http://www.milkfarmsoft.com/
Attachment: [application/pkcs7-signature] smime.p7s
Attachment: [application/pkcs7-signature] smime.p7s