adapt to parser modif

This commit is contained in:
Marc Delisle
2003-03-13 18:35:27 +00:00
parent 2a794be38d
commit edb5fec20a
2 changed files with 1 additions and 9 deletions

View File

@@ -549,13 +549,7 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')) {
$wi = 0;
@reset($analyzed_sql[0]['where_clause_identifiers']);
while(list($wci_nr, $wci) = each($analyzed_sql[0]['where_clause_identifiers'])) {
$wi++;
// garvin: We only count the even words, because uneven words are the
// contents of the identifies. I guess. ;)
if ($wi % 2 != 0) {
$highlightkey = $analyzed_sql[0]['where_clause_identifiers'][$wi-1];
$highlight_columns[$highlightkey] = 'true';
}
$highlight_columns[$wci] = 'true';
}
}

View File

@@ -1300,8 +1300,6 @@ if (!defined('PMA_SQP_LIB_INCLUDED')) {
$where_clause .= $arr[$i]['data'] . $sep;
if (($arr[$i]['type'] == 'quote_backtick')
|| ($arr[$i]['type'] == 'quote_double')
|| ($arr[$i]['type'] == 'quote_single')
|| ($arr[$i]['type'] == 'alpha_identifier')) {
$where_clause_identifiers[] = $arr[$i]['data'];
}