- Fixed a bug occuring when a field was already escaped

This commit is contained in:
mcndave committed 2021-04-23 03:03:01 +00:00
1 parent 1469d167c4
commit 4df9ececba
3 files changed
+5 -6

No files matched your search

+1 -1
View File
@@ -193,7 +193,7 @@ class MsSQL 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'";