You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(eg replace before/after with an innocuous pattern?)
An example of what Kristijan Vogrincic would like to be able to treat as a normal identifier, without having to quote it:
select * from ~T~somename~T~
This type of request typically comes about because the T-SQL is not ready-to-run, it is being passed through some templating engine which replaces things (identifiers, constants) and uses some invalid T-SQL constructs to identify where the replacements should happen.
One approach that could work here, is to enable the user to define an "identifier regex pattern", whereby any matches in the text are automatically captured/isolated as a special kind of string (like a quoted identifier in square brackets).
I can't think off the top of my head what types of restrictions or safety would need to be included (eg to avoid parsing failures due to over-eager regex expressions), but it should be doable.
(eg replace before/after with an innocuous pattern?)
An example of what Kristijan Vogrincic would like to be able to treat as a normal identifier, without having to quote it:
This type of request typically comes about because the T-SQL is not ready-to-run, it is being passed through some templating engine which replaces things (identifiers, constants) and uses some invalid T-SQL constructs to identify where the replacements should happen.
See also issue #92
The text was updated successfully, but these errors were encountered: