1
0
Fork 0

SQL-Parser / SQL-Box:

- enabled execution of queries in SQL-Box
Dieser Commit ist enthalten in:
DSB 2011-06-20 14:00:02 +00:00
Ursprung 76b02c64e7
Commit 3d1c6c6798

Datei anzeigen

@ -396,9 +396,9 @@ class SqlController extends Zend_Controller_Action
} }
$statements = $parser->getParsedStatements(); $statements = $parser->getParsedStatements();
foreach ($statements as $statement) { foreach ($statements as $statement) {
echo "<br>Extracted statement: ".$statement; //echo "<br>Extracted statement: ".$statement;
try { try {
$res = array(); // $this->_db->query($statement, Msd_Db::ARRAY_ASSOC); $res = $this->_db->query($statement, Msd_Db::ARRAY_ASSOC);
$this->view->resultset = $res; $this->view->resultset = $res;
} catch (Exception $e) { } catch (Exception $e) {
$this->view->errorMessage = $e->getMessage(); $this->view->errorMessage = $e->getMessage();