Skip to content

Commit

Permalink
Merge pull request #377 from nobuhiko/i376
Browse files Browse the repository at this point in the history
ref #376 ``となってしまう場合があるので、その場合除去する
  • Loading branch information
okazy authored Mar 5, 2020
2 parents 930e6e5 + d6b236d commit fdf10f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions data/class/db/dbfactory/SC_DB_DBFactory_MYSQL.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit fdf10f5

Please sign in to comment.