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
The text was updated successfully, but these errors were encountered:
grinheckerdev
changed the title
Python f-strings do not highlight as SQL syntax
[NOT IMPORTANT] Python f-strings do not highlight as SQL syntax
Dec 13, 2023
I personally see it as a feature that SQL is not highlighted inside fstrings. This form of interpolation can easily lead to SQL injection bugs/vulnerabilities. Instead it's better to pass parameters. Plus it helps with the SQL plan cache to have fewer distinct queries.
I am rather concerned about amount of contexts in conjunction with #3046 as SQL is pushed with_prototype. Python's syntax cache already grows from 545kB to 2.9MB with that PR and might significantly grow further with more SQL contexts being added.
Adding SQL highlighting within f-strings is easy copy&paste though.
deathaxe
added a commit
to deathaxe/sublime-packages
that referenced
this issue
Dec 13, 2023
Problem description
Preferred solution
f-strings should be highlighted with SQL syntax.
Alternatives
N/A
Additional Information
No response
The text was updated successfully, but these errors were encountered: