From 5ecbd82a9b9c846dd2d36b56dddd7bb2b814dd8f Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Tue, 1 Feb 2011 14:59:00 +0100 Subject: [PATCH] Catch exception. --- horde/admin/sqlshell.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/horde/admin/sqlshell.php b/horde/admin/sqlshell.php index d29b2304c..da93f7701 100644 --- a/horde/admin/sqlshell.php +++ b/horde/admin/sqlshell.php @@ -41,7 +41,11 @@ if (Horde_Util::getFormData('list-tables')) { $session->set('horde', 'sql_query_cache', $q_cache); // Parse out the query results. - $result = $db->execute(Horde_String::convertCharset($command, 'UTF-8', $conf['sql']['charset'])); + try { + $result = $db->execute(Horde_String::convertCharset($command, 'UTF-8', $conf['sql']['charset'])); + } catch (Horde_Db_Exception $e) { + $notification->push($e); + } } if (isset($result)) { -- 2.11.0