#41416 [Csd]: getColumnMeta() should also return table name
| From: | fabrizio dot balliano at crealabs dot it | Date: | Wed, 13 Jun 2007 11:58:34 +0000 |
| Subject: | #41416 [Csd]: getColumnMeta() should also return table name | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-113735@lists.php.net to get a copy of this message | ||
ID: 41416
User updated by: fabrizio dot balliano at crealabs dot it
Reported By: fabrizio dot balliano at crealabs dot it
Status: Closed
Bug Type: Feature/Change Request
PHP Version: 5.2.2
New Comment:
this should be added at least for:
fbsql: fbsql_field_table
msql: msql_field_table
pgsql: pg_field_table
Previous Comments:
------------------------------------------------------------------------
[2007-05-17 15:35:52] fabrizio dot balliano at crealabs dot it
it should, pgsql old driver already has it and i used it
if you look here:
http://it.php.net/manual-lookup.php?pattern=field_table&lang=it
you can find what old drivers already have that function
------------------------------------------------------------------------
[2007-05-17 15:29:49] tony2001@php.net
No idea if that's even possible for other drivers than MySQL.
------------------------------------------------------------------------
[2007-05-17 15:21:51] fabrizio dot balliano at crealabs dot it
was it implemented for all drivers?
------------------------------------------------------------------------
[2007-05-17 15:12:35] tony2001@php.net
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
------------------------------------------------------------------------
[2007-05-17 15:03:42] 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);
}
?>
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/41416
--
Edit this bug report at http://bugs.php.net/?id=41416&edit=1