1
Vote

mysql_field_table wont return alias table name

description

Both in Windows PHP and Linux PHP, mysql_field_table would return an alias tablename if used in a query.

Please advise.

Thank you.
// -- windows + linux:
php > $q = mysql_query('SELECT ctry.* FROM countries ctry');
php > print mysql_field_table($q, 0);
ctry
// -- phalanger & PhpNetMySql.dll
$h = mysql_connect('localhost');
mysql_select_db('test');
$res = mysql_query('SELECT ctry.* FROM countries ctry');
print mysql_field_table($res, 0);
countries

comments