fix: MariaDB error for quoting tablename

pull/4927/head
Bechkalo Evgeny 2019-07-23 11:58:18 +03:00
parent 76d58e6e53
commit 672601f7b8
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}