Re: [PDO] Fwd: Bug #50755 [Opn]: PDO DBLIB Fails with OOM
[email protected] (Matteo Beccati) Tue, 30 Mar 2010 12:59:21 +0200
| Newsgroups | php.pdo |
|---|---|
| Message-ID | <[email protected]> |
On 30/03/2010 05:44, Stanley Sufficool wrote: > The database client/library either Windows dblib and Native SQL Client > or FreeTDS returns a blank string for unnamed columns. This is the > default client behavior. I cannot MAKE a PHP associative array contain > 2 keys of a blank string with 2 different values, it's just not > possible. > > While we're SHOULDing all over ourselves... the programmer SHOULD set > the name of the column in the select statement if they want to > reference it by key. > > ANSI SQL 92 defines no standard for unnamed column naming it's > "implementation-dependent". If you have a standard, file it as a RFC > or bug. My personal optionion would be that the database driver should not automatically compute column names. And in case there are two or more columns with the same name, the last one "wins". That's what happens with the other drivers. However, I suppose we can make this change only for trunk (5.4+), not for the stable 5.3 series, unless the RM says otherwise. Cheers -- Matteo Beccati Development & Consulting - http://www.beccati.com/