From fe380f039c75e8545ac7d1f86747a1c2be440b28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Sat, 8 Oct 2005 20:01:12 +0000 Subject: [PATCH] Reenable LIMIT appending (bug #1318624). --- ChangeLog | 1 + import.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 54b6b611e..f661877f4 100755 --- a/ChangeLog +++ b/ChangeLog @@ -66,6 +66,7 @@ $Source$ user, it has to fail. * libraries/import/sql.php: Fix query parsing when there is comment or string at the end. + * import.php: Reenable LIMIT appending (bug #1318624). 2005-10-07 Marc Delisle * libraries/check_user_privileges.lib.php: bug #1313821, dbname containing a diff --git a/import.php b/import.php index e5fafbc5e..be2b4ffdb 100644 --- a/import.php +++ b/import.php @@ -357,8 +357,8 @@ if (isset($my_die)) { } if ($go_sql) { - // cleanup some variables, otherwise we confuse sql.php - unset($pos); + // Set pos to zero to possibly append limit + $pos = 0; require('./sql.php'); } else { $active_page = $goto;