summaryrefslogtreecommitdiff
path: root/sqlbox/view.php
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2012-11-21 14:54:59 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2012-11-21 14:54:59 +0100
commitb27fcb3087ecac1b61cff59d35bdab7c7d5ded09 (patch)
treee2c5a4df00ed80148f9dd861348204a171843dcb /sqlbox/view.php
parent0b3e94f02d5c4cfcfb93a90896881652eceafc55 (diff)
downloadsqltutor-plugin-b27fcb3087ecac1b61cff59d35bdab7c7d5ded09.tar.gz
sqltutor-plugin-b27fcb3087ecac1b61cff59d35bdab7c7d5ded09.tar.bz2
sqltutor-plugin-b27fcb3087ecac1b61cff59d35bdab7c7d5ded09.zip
Revert "Add additional error string from database."
This reverts commit 0b3e94f02d5c4cfcfb93a90896881652eceafc55.
Diffstat (limited to 'sqlbox/view.php')
-rw-r--r--sqlbox/view.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/sqlbox/view.php b/sqlbox/view.php
index d334835..1158d7b 100644
--- a/sqlbox/view.php
+++ b/sqlbox/view.php
@@ -84,10 +84,7 @@ if (isset($data->sqlbox_query)) {
if (!db)
error("Failed to connect to sqlbox db");
-// $result = pg_query($db, $data->sqlbox_query);
- $result = pg_send_query($db, $data->sqlbox_query);
- $result = pg_get_result($db);
- echo pg_result_error_field($result, PGSQL_DIAG_SQLSTATE);
+ $result = pg_query($db, $data->sqlbox_query);
if (!$result)
error("Query failed!");