picodb(mssql): escape closing brackets within identifiers
Ref: https://docs.microsoft.com/en-us/sql/t-sql/functions/quotename-transact-sql
This commit is contained in:
committed by
Frédéric Guillot
parent
427abb9961
commit
55c80aa090
@@ -97,7 +97,7 @@ class Mssql extends Base
|
||||
*/
|
||||
public function escape($identifier)
|
||||
{
|
||||
return '['.$identifier.']';
|
||||
return '['.str_replace("]","]]",$identifier).']';
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user