IIRC, you're replacing literal [ in [mssql_identifiers] with [[].
Not only this seems unnecessary: https://learn.microsoft.com/en-us/sql/relational-databases/databases/database-identifiers?view=sql-server-ver17#bracket-delimited-identifiers
But what do you do with literal ] in identifiers?
IMAO we should just replace ] with ]] and that's it.
IIRC, you're replacing literal
[in[mssql_identifiers]with[[].Not only this seems unnecessary: https://learn.microsoft.com/en-us/sql/relational-databases/databases/database-identifiers?view=sql-server-ver17#bracket-delimited-identifiers
But what do you do with literal
]in identifiers?IMAO we should just replace
]with]]and that's it.