diff --git a/sql.php b/sql.php index e941b7ca11..96fc6b506f 100644 --- a/sql.php +++ b/sql.php @@ -482,6 +482,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;');