From e7fa98dc09c62bb75e7f1f70411b17a2a0e51940 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Thu, 9 Feb 2023 12:55:47 +0200 Subject: [PATCH] lock table ref --- application/Espo/ORM/QueryComposer/MysqlQueryComposer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/Espo/ORM/QueryComposer/MysqlQueryComposer.php b/application/Espo/ORM/QueryComposer/MysqlQueryComposer.php index 6333938cbd..ac59a4cee7 100644 --- a/application/Espo/ORM/QueryComposer/MysqlQueryComposer.php +++ b/application/Espo/ORM/QueryComposer/MysqlQueryComposer.php @@ -51,7 +51,7 @@ class MysqlQueryComposer extends BaseQueryComposer throw new LogicException(); } - $sql = "LOCK TABLES `{$table}` "; + $sql = "LOCK TABLES " . $this->quoteIdentifier($table) . " "; $modeMap = [ LockTableQuery::MODE_SHARE => 'READ',