SQL-Parser / SQL-Box:
- enabled execution of queries in SQL-Box
Dieser Commit ist enthalten in:
Ursprung
76b02c64e7
Commit
3d1c6c6798
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
|
@ -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();
|
||||||
|
|
Laden …
In neuem Issue referenzieren