From: Jakub Vrana Date: Fri, 5 Aug 2011 15:47:33 +0000 (+0200) Subject: Fix Stop on error X-Git-Tag: v3.3.2~4 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=52c15bf251f4972bbb81ead431bf1e0137eb0d14;p=adminer.git Fix Stop on error Broken since commit 5576d84980e4161acb9ef96025e7ba7030016c50 --- diff --git a/adminer/sql.inc.php b/adminer/sql.inc.php index 7165013d..723ed087 100644 --- a/adminer/sql.inc.php +++ b/adminer/sql.inc.php @@ -105,7 +105,7 @@ if (!$error && $_POST) { echo "

" . lang('Error in query') . ": " . error() . "\n"; $errors[] = " $commands"; if ($_POST["error_stops"]) { - break; + break 2; } } elseif (is_object($result)) { select($result, $connection2); diff --git a/changes.txt b/changes.txt index 592cfd69..a1247d5f 100644 --- a/changes.txt +++ b/changes.txt @@ -2,6 +2,7 @@ Adminer 3.3.2-dev: Display error with non-existent row in edit Fix minor parser bug in SQL command with webserver file Don't scroll with AJAX select order and alter move column +Fix SQL command Stop on error Fast number of rows with big tables (PostgreSQL) Sort databases and schemas (PostgreSQL)