PHP 4.0 Bug #8009: mysql_fetch_array and same Column Name
| From: | hochstein at macron-ag dot de | Date: | Tue, 28 Nov 2000 12:17:57 +0000 |
| Subject: | PHP 4.0 Bug #8009: mysql_fetch_array and same Column Name | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-39383@lists.php.net to get a copy of this message | ||
From: hochstein@macron-ag.de
Operating system: All
PHP version: 4.0.3pl1
PHP Bug Type: Feature/Change Request
Bug description: mysql_fetch_array and same Column Name
In the documentation it is said that if you use same column names the last one will win. That is so
far ok.
However I think the following statement could be correctly transferred in an assoc. array:
SELECT tblOrderAddress.Street, tblDeliveryAdress.Street
FROM tblCustomer AS tblOrderAddress, tblCustomer AS tblDeliveryAddress
WHERE .....;
It is correct that Street occurs twice as an attribute, but it is distinguishable by the preceding
tablename.
Isn't it possible to change mysql_fetch_array, so that tablenames, if stated, are included in
the assoc Array building process?
--
Edit Bug report at: http://bugs.php.net/?id=8009&edit=1