bug 815822

This commit is contained in:
Marc Delisle
2003-10-01 20:18:36 +00:00
parent 007c2c2341
commit dc61c4e9e4
2 changed files with 6 additions and 2 deletions

View File

@@ -443,8 +443,11 @@ function PMA_getTableContentFast($db, $table, $crlf, $error_url, $sql_query)
// Checks whether the field is an integer or not
for ($j = 0; $j < $fields_cnt; $j++) {
//$field_set[$j] = PMA_backquote(PMA_mysql_field_name($result, $j), $use_backquotes);
$field_set[$j] = PMA_backquote($analyzed_sql[0]['select_expr'][$j]['column'], $use_backquotes);
if (isset($analyzed_sql[0]['select_expr'][$j]['column'])) {
$field_set[$j] = PMA_backquote($analyzed_sql[0]['select_expr'][$j]['column'], $use_backquotes);
} else {
$field_set[$j] = PMA_backquote(PMA_mysql_field_name($result, $j), $use_backquotes);
}
$type = $field_types[$field_set[$j]];