From 52c15bf251f4972bbb81ead431bf1e0137eb0d14 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Fri, 5 Aug 2011 17:47:33 +0200 Subject: [PATCH] Fix Stop on error Broken since commit 5576d84980e4161acb9ef96025e7ba7030016c50 --- adminer/sql.inc.php | 2 +- changes.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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)