Better appending of LIMIT (bug #978930).

This commit is contained in:
Michal Čihař
2004-08-16 15:55:06 +00:00
parent fbd56678f8
commit 8f3c3accec
3 changed files with 8 additions and 14 deletions

View File

@@ -1706,17 +1706,6 @@ if (typeof(document.getElementById) != 'undefined'
echo ' <b>' . $GLOBALS['strSQLQuery'] . ':</b>&nbsp;';
echo '<br />' . "\n";
echo ' ' . $query_base;
// If a 'LIMIT' clause has been programatically added to the query
// displays it
if (!empty($GLOBALS['sql_limit_to_append'])) {
if (!empty($GLOBALS['show_as_php'])) {
echo $GLOBALS['sql_limit_to_append'];
} else if (!empty($GLOBALS['validatequery'])) {
// skip the extra bit here
} else {
echo '&nbsp;' . PMA_formatSql(PMA_SQP_parse($GLOBALS['sql_limit_to_append'], $GLOBALS['sql_limit_to_append']));
}
}
unset($local_query);
//Clean up the end of the PHP