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

SOQL-related checks aren't recognized in "Database.query('')" format #85

Open
VarS311 opened this issue Jun 21, 2016 · 0 comments
Open

Comments

@VarS311
Copy link
Contributor

VarS311 commented Jun 21, 2016

The node visitor isn't able to recognize SOQL statements when they are invoked by Database.query('...') because the content of the query is tokenized as a String before the parser has a chance to relate it to the SOQL_EXPRESSION rule, so the checks related to SOQL won't pop-up.

After some analysis, we figured the best way to solve this issue could be by re-parsing the value of what is recognized as a STRING, and then we could apply the same checks to the new smaller "pseudo-tree" that will be the result of the new parse process.

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

No branches or pull requests

1 participant