bug #2941101 import timeout when table already created and several data lines

This commit is contained in:
Marc Delisle
2010-01-31 16:42:06 +00:00
parent b0a6ad4dd6
commit bc7722584e
2 changed files with 7 additions and 1 deletions

View File

@@ -433,7 +433,11 @@ if (isset($message)) {
}
// Parse and analyze the query, for correct db and table name
// in case of a query typed in the query window
require_once './libraries/parse_analyze.lib.php';
// (but if the query is too large, in case of an imported file, the parser
// can choke on it so avoid parsing)
if (strlen($sql_query) <= $GLOBALS['cfg']['MaxCharactersInDisplayedSQL']) {
require_once './libraries/parse_analyze.lib.php';
}
// There was an error?
if (isset($my_die)) {