diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-11-21 14:55:30 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-11-21 14:57:12 +0100 |
commit | bbee0f79be6080ba589b043e68321c17dd295d65 (patch) | |
tree | 15039b97f4e9117b128e7c0f6a0f26f42ec7dc2d /sqlbox/view.php | |
parent | b27fcb3087ecac1b61cff59d35bdab7c7d5ded09 (diff) | |
download | sqltutor-plugin-bbee0f79be6080ba589b043e68321c17dd295d65.tar.gz sqltutor-plugin-bbee0f79be6080ba589b043e68321c17dd295d65.tar.bz2 sqltutor-plugin-bbee0f79be6080ba589b043e68321c17dd295d65.zip |
sqlbox: Display error message
Diffstat (limited to 'sqlbox/view.php')
-rw-r--r-- | sqlbox/view.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sqlbox/view.php b/sqlbox/view.php index 1158d7b..b45924b 100644 --- a/sqlbox/view.php +++ b/sqlbox/view.php @@ -86,7 +86,7 @@ if (isset($data->sqlbox_query)) { $result = pg_query($db, $data->sqlbox_query); if (!$result) - error("Query failed!"); + error("Query failed: ".pg_last_error($db)); echo "<table style=\"border: 1px;\">"; $n = pg_num_fields($result); |