- Fixed a bug occuring when a field was already escaped
This commit is contained in:
1 parent
1469d167c4
commit
4df9ececba
3 files changed
+5
-6
No files matched your search
@@ -130,7 +130,7 @@ class MySQL implements AdapterInterface {
|
||||
case static::IDENTIFIER_DATABASE:
|
||||
case static::IDENTIFIER_TABLE:
|
||||
case static::IDENTIFIER_FIELD:
|
||||
return "`" . str_replace("`", "``", $segment) . "`";
|
||||
return "`" . trim(str_replace("`", "``", $segment), '`') . "`";
|
||||
|
||||
case static::IDENTIFIER_VALUE:
|
||||
return "\"$segment\"";
|
||||
|
||||
Reference in new issue
Block a user