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:
Andrey Vlasovskikh
2014-01-15 16:54:44 +04:00
parent b1fb92e346
commit cfe29d7846

View File

@@ -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>