Re: [PHP-DEV] Re: [PDO] Re: [PHP-DEV] Re: [PDO] Re: [PHP-DEV] [PATCH] New PDO methods for PostgreSQL driver
[email protected] (Ferenc Kovacs) Mon, 14 Jun 2010 11:21:59 +0200
| Newsgroups | php.internals,php.pdo |
|---|---|
| Message-ID | <[email protected]> |
--00151747b36063be370488fa0558 Content-Type: text/plain; charset=UTF-8 > > > 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? > > I don't think that is a good idea. For example in mysql, you can SELECT INTO OUTFILE any sql result, for postgresql, you can only import/export a table: http://www.postgresql.org/docs/8.1/static/sql-copy.html So the two feature is different, and I can't see a point, that why should we force different features into a common functionality. For postgres I think we had to provide this functionality somehow, because it was impossible to do this with through PDO. But we think it over, before we over-generalize the function. Tyrael --00151747b36063be370488fa0558--