Fix run sql with large data

This commit is contained in:
Laurent Destailleur
2017-08-26 16:24:55 +02:00
parent 5ed22b64fb
commit ebe84b6ac5

View File

@@ -143,7 +143,7 @@ function run_sql($sqlfile,$silent=1,$entity='',$usesavepoint=1,$handler='',$oker
{
while (! feof($fp))
{
$buf = fgets($fp, 4096);
$buf = fgets($fp, 32768);
// Test if request must be ran only for particular database or version (if yes, we must remove the -- comment)
if (preg_match('/^--\sV(MYSQL|PGSQL)([^\s]*)/i',$buf,$reg))