mirror of https://github.com/MISP/MISP
fix: MariaDB error for quoting tablename
parent
76d58e6e53
commit
672601f7b8
|
@ -14,7 +14,7 @@ class QueryTool
|
|||
{
|
||||
$db = $model->getDataSource();
|
||||
$connection = $db->getConnection();
|
||||
$query = $connection->prepare('DELETE FROM "' . $table . '" WHERE "' . $field . '" = :value');
|
||||
$query = $connection->prepare('DELETE FROM ' . $table . ' WHERE "' . $field . '" = :value');
|
||||
$query->bindValue(':value', $value, $this->__pdoMap[$db->introspectType($value)]);
|
||||
$query->execute();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue