projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f21273
)
Catch exception.
author
Jan Schneider
<jan@horde.org>
Tue, 1 Feb 2011 13:59:00 +0000
(14:59 +0100)
committer
Jan Schneider
<jan@horde.org>
Tue, 1 Feb 2011 13:59:00 +0000
(14:59 +0100)
horde/admin/sqlshell.php
patch
|
blob
|
history
diff --git
a/horde/admin/sqlshell.php
b/horde/admin/sqlshell.php
index
d29b230
..
da93f77
100644
(file)
--- 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)) {