enabled Syntaxcoloring for SQL Statements. This can be turned off in config.inc.php3

This commit is contained in:
Mike Beck
2002-06-12 11:59:35 +00:00
parent 8eb1c70efb
commit db0e689d4c
5 changed files with 158 additions and 8 deletions

View File

@@ -353,7 +353,7 @@ if ($sql_query != '') {
$a_sql_query = $pieces[$i];
$result = mysql_query($a_sql_query);
if ($result == FALSE) { // readdump failed
$my_die = $a_sql_query;
$my_die = PMA_format_sql($a_sql_query);
break;
}
if (!isset($reload) && eregi('^(DROP|CREATE)[[:space:]]+(IF EXISTS[[:space:]]+)?(TABLE|DATABASE)[[:space:]]+(.+)', $a_sql_query)) {