mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
Inject SQL only into strings that have SELECT/UPDATE... at the beginning
This commit is contained in:
@@ -9,6 +9,6 @@
|
||||
</injection>
|
||||
<injection language="SQL" injector-id="python">
|
||||
<display-name>"SQL select/delete/insert/update/create"</display-name>
|
||||
<place><![CDATA[pyLiteralExpression().withText(string().matchesBrics(".*(((SELECT|DELETE) .*FROM)|((INSERT|REPLACE) .*INTO)|(UPDATE .* SET)|((CREATE|DROP|ALTER) +(TABLE|INDEX))) .*"))]]></place>
|
||||
<place><![CDATA[pyLiteralExpression().withText(string().matchesBrics(".{0,5}(((SELECT|DELETE) .*FROM)|((INSERT|REPLACE) .*INTO)|(UPDATE .* SET)|((CREATE|DROP|ALTER) +(TABLE|INDEX))) .*"))]]></place>
|
||||
</injection>
|
||||
</component>
|
||||
|
||||
Reference in New Issue
Block a user