getColumnMeta() should also return table name
| Request #41416 | getColumnMeta() should also return table name | ||||
|---|---|---|---|---|---|
| Submitted: | 2007-05-17 13:25 UTC | Modified: | 2007-06-13 11:58 UTC | ||
| From: | fabrizio dot balliano at crealabs dot it | Assigned: | |||
| Status: | Closed | Package: | Feature/Change Request | ||
| PHP Version: | 5.2.2 | OS: | |||
| Private report: | No | CVE-ID: | None | ||
[2007-05-17 13:25 UTC] fabrizio dot balliano at crealabs dot it
Description: ------------ if you run a query with joins is really useful to have the getcolumnmeta to return the table name thus I can understand from the resultset with field come from every table now it's possible to do that with http://it.php.net/manual/it/function.mysql-tablename.php
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2007-05-17 14:10 UTC] tony2001@php.net
[2007-05-17 14:16 UTC] fabrizio dot balliano at crealabs dot it
[2007-05-17 14:23 UTC] tony2001@php.net
[2007-05-17 14:29 UTC] fabrizio dot balliano at crealabs dot it
[2007-05-17 14:58 UTC] tony2001@php.net
[2007-05-17 15:03 UTC] fabrizio dot balliano at crealabs dot it
<?php $select = $DB->query('SELECT * FROM table1 JOIN table2 ON (table1.id = table2.id)'); $colcount = $select->columnCount(); for ($i=0; $i<$colcount; $i++) { $meta = $select->getColumnMeta(0); var_dump($meta); } ?>[2007-05-17 15:12 UTC] tony2001@php.net
[2007-05-17 15:21 UTC] fabrizio dot balliano at crealabs dot it
[2007-05-17 15:29 UTC] tony2001@php.net
[2007-06-13 11:58 UTC] fabrizio dot balliano at crealabs dot it