Re: [PDO] Fwd: Bug #50755 [Opn]: PDO DBLIB Fails with OOM
[email protected] (Lester Caine) Sat, 27 Mar 2010 07:04:03 +0000
| Newsgroups | php.pdo |
|---|---|
| Message-ID | <[email protected]> |
Stanley Sufficool wrote:
> 4. Removed automagic compute column naming (which was clobbering library
> memory). Just return what the server returns including empty strings.
> The user will need to alias in their sql query as "select 1+1 as
> oneplusone" instead of just "select 1+1" magically returning
> array('compute1'=>'2').
>
> Question: Who if anyone relies on this behavior? I don't see other
> drivers doing this.
That is a little more fundamental question ;)
Since PDO is currently scoped only to abstract the data, then anything related
to changes to the SQL should not be happening. So in theory if you switch the
driver a simple SQL query should still work? There are many reasons why it will
not work but that is not for PDO to address! So there should be nothing
'automagical' in any of the drivers unless it produces results that are SQL
standard compliant across all drivers?
My own stand point is that PDO is still not user ready until it provides a
little more REAL cross database compatibility, so something like this is not
acceptable and must be addressed in the SQL initially provided.
--
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