Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide ability to auto-ignore certain types of content #123

Open
TaoK opened this issue Sep 8, 2014 · 1 comment
Open

Provide ability to auto-ignore certain types of content #123

TaoK opened this issue Sep 8, 2014 · 1 comment

Comments

@TaoK
Copy link
Owner

TaoK commented Sep 8, 2014

(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.

See also issue #92

@TaoK
Copy link
Owner Author

TaoK commented Nov 5, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant