numeric foreign keys
This commit is contained in:
@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
|
||||
$Id$
|
||||
$Source$
|
||||
|
||||
2002-11-22 Marc Delisle <lem9@users.sourceforge.net>
|
||||
* libraries/display_tbl.lib.php3: numeric foreign keys used as alias
|
||||
|
||||
2002-11-22 Alexander M. Turek <rabus@users.sourceforge.net>
|
||||
* scripts/create-release.sh: The script should now work at the SF shell
|
||||
again.
|
||||
|
@@ -1042,6 +1042,17 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')) {
|
||||
} else if ($row[$pointer] != '') {
|
||||
$vertical_display['data'][$row_no][$i] = ' <td align="right" valign="top" bgcolor="' . $bgcolor . '">';
|
||||
|
||||
reset($analyzed_sql[0]['select_expr']);
|
||||
while (list ($select_expr_position, $select_expr) = each ($analyzed_sql[0]['select_expr'])) {
|
||||
$alias = $analyzed_sql[0]['select_expr'][$select_expr_position]['alias'];
|
||||
if (!empty($alias)) {
|
||||
$true_column = $analyzed_sql[0]['select_expr'][$select_expr_position]['column'];
|
||||
if ($alias == $meta->name) {
|
||||
$meta->name = $true_column;
|
||||
} // end if
|
||||
} // end if
|
||||
} // end while
|
||||
|
||||
if (isset($map[$meta->name])) {
|
||||
// Field to display from the foreign table?
|
||||
if (!empty($map[$meta->name][2])) {
|
||||
|
Reference in New Issue
Block a user