mirror of https://github.com/MISP/MISP
fix: [observer datasource] fixed for the QueryTool
parent
10ab82f830
commit
cf6d82aa3a
|
@ -14,7 +14,7 @@ class QueryTool
|
|||
{
|
||||
$db = $model->getDataSource();
|
||||
$connection = $db->getConnection();
|
||||
if ($db->config['datasource'] == 'Database/Mysql' ) {
|
||||
if ($db->config['datasource'] == 'Database/Mysql' || $db->config['datasource'] == 'Database/MysqlObserver') {
|
||||
$query = $connection->prepare('DELETE FROM ' . $table . ' WHERE ' . $field . ' = :value');
|
||||
} elseif ($db->config['datasource'] == 'Database/Postgres' ) {
|
||||
$query = $connection->prepare('DELETE FROM "' . $table . '" WHERE "' . $field . '" = :value');
|
||||
|
|
Loading…
Reference in New Issue