From 2e03c635371cc056ebe708f05afb6fa0f58abff2 Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Tue, 24 Feb 2009 10:48:59 +0000 Subject: [PATCH] Option to stop on error (thanks to Vaclav Marik) git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@558 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- lang/cs.inc.php | 1 + sql.inc.php | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/lang/cs.inc.php b/lang/cs.inc.php index 3b631352..748e087c 100644 --- a/lang/cs.inc.php +++ b/lang/cs.inc.php @@ -213,4 +213,5 @@ $translations = array( 'Import' => 'Import', 'Table structure' => 'Struktura tabulky', 'Select table' => 'Vypsat tabulku', + 'Stop on error' => 'Zastavit při chybě', ); diff --git a/sql.inc.php b/sql.inc.php index a01ae9fa..d100ffdb 100644 --- a/sql.inc.php +++ b/sql.inc.php @@ -29,6 +29,9 @@ if (!$error && $_POST) { //! don't allow changing of character_set_results, convert encoding of displayed query if (!$mysql->multi_query(substr($query, 0, $match[0][1]))) { echo "

" . lang('Error in query') . ": " . htmlspecialchars($mysql->error) . "

\n"; + if ($_POST["error_stops"]) { + break; + } } else { do { $result = $mysql->store_result(); @@ -64,6 +67,7 @@ if (!$error && $_POST) { +