mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 04:51:24 +07:00
Revert "Detect SQL fragments only in the beginning of string literals" (PY-11828)
It was a temporary solution for injecting SQL into concatenated fragments of
strings. Now fragment injection handles it well.
This reverts commit 546c532128.
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("[UuRrBb\\\"\\' \t]*(((SELECT|DELETE) .*FROM)|((INSERT|REPLACE) .*INTO)|(UPDATE .* SET)|((CREATE|DROP|ALTER) +(TABLE|INDEX))) .*"))]]></place>
|
||||
<place><![CDATA[pyLiteralExpression().withText(string().matchesBrics(".*(((SELECT|DELETE) .*FROM)|((INSERT|REPLACE) .*INTO)|(UPDATE .* SET)|((CREATE|DROP|ALTER) +(TABLE|INDEX))) .*"))]]></place>
|
||||
</injection>
|
||||
</component>
|
||||
|
||||
Reference in New Issue
Block a user