diff --git a/sql.php b/sql.php index 6caeb7b0c..6b2628aca 100644 --- a/sql.php +++ b/sql.php @@ -394,6 +394,7 @@ if (strlen($db)) { if (isset($GLOBALS['show_as_php']) || !empty($GLOBALS['validatequery'])) { unset($result); $num_rows = 0; + $unlim_num_rows = 0; } else { if (isset($_SESSION['profiling']) && PMA_profilingSupported()) { PMA_DBI_query('SET PROFILING=1;');