From d6b236db9e71c8da14e3342198a49504aada8890 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=AE=E3=81=B6?= Date: Tue, 3 Mar 2020 10:31:30 +0900 Subject: [PATCH] =?UTF-8?q?``=E3=81=A8=E3=81=AA=E3=81=A3=E3=81=A6=E3=81=97?= =?UTF-8?q?=E3=81=BE=E3=81=86=E5=A0=B4=E5=90=88=E3=81=8C=E3=81=82=E3=82=8B?= =?UTF-8?q?=E3=81=AE=E3=81=A7=E3=80=81=E3=81=9D=E3=81=AE=E5=A0=B4=E5=90=88?= =?UTF-8?q?=E9=99=A4=E5=8E=BB=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/class/db/dbfactory/SC_DB_DBFactory_MYSQL.php | 1 + 1 file changed, 1 insertion(+) diff --git a/data/class/db/dbfactory/SC_DB_DBFactory_MYSQL.php b/data/class/db/dbfactory/SC_DB_DBFactory_MYSQL.php index 2fb19ea872..0bd20ba2aa 100644 --- a/data/class/db/dbfactory/SC_DB_DBFactory_MYSQL.php +++ b/data/class/db/dbfactory/SC_DB_DBFactory_MYSQL.php @@ -349,6 +349,7 @@ public function sfGetCreateIndexDefinition($table, $name, $definition) public function sfChangeReservedWords($sql) { $changesql = preg_replace('/(^|[^\w])RANK([^\w]|$)/i', '$1`RANK`$2', $sql); + $changesql = preg_replace('/``/i', '`', $changesql); // 2重エスケープ問題の対処 return $changesql; }