From 3d1c6c6798695abcc7d0da28034c249c842e3026 Mon Sep 17 00:00:00 2001 From: DSB Date: Mon, 20 Jun 2011 14:00:02 +0000 Subject: [PATCH] SQL-Parser / SQL-Box: - enabled execution of queries in SQL-Box --- application/controllers/SqlController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/controllers/SqlController.php b/application/controllers/SqlController.php index b405827..f501fb3 100644 --- a/application/controllers/SqlController.php +++ b/application/controllers/SqlController.php @@ -396,9 +396,9 @@ class SqlController extends Zend_Controller_Action } $statements = $parser->getParsedStatements(); foreach ($statements as $statement) { - echo "
Extracted statement: ".$statement; + //echo "
Extracted statement: ".$statement; try { - $res = array(); // $this->_db->query($statement, Msd_Db::ARRAY_ASSOC); + $res = $this->_db->query($statement, Msd_Db::ARRAY_ASSOC); $this->view->resultset = $res; } catch (Exception $e) { $this->view->errorMessage = $e->getMessage();