Merge pull request #1392 from Tithugues/SQLWithoutDelimiter_master

Allow import SQL without delimiter till EOF.
This commit is contained in:
Hugues Peccatte 2014-11-10 13:44:44 +01:00
commit 89ae63ddf9

View File

@ -465,7 +465,15 @@ class ImportSql extends ImportPlugin
}
//Commit any possible data in buffers
PMA_importRunQuery('', $this->_data, false, $sql_data);
PMA_importRunQuery(
$this->_stringFctToUse['substr'](
$this->_data,
$this->_queryBeginPosition
), //Query to execute
$this->_data,
false,
$sql_data
);
PMA_importRunQuery('', '', false, $sql_data);
}