From a2c9e2aca0f190920e065532f731b6e0de642881 Mon Sep 17 00:00:00 2001 From: Andrey Vlasovskikh Date: Wed, 23 Dec 2015 18:16:28 +0300 Subject: [PATCH] Don't assume %-formatting by default since this makes it impossible to configure custom SQL user parameters (PY-17188, PY-17382, PY-10771) We've effectivly rolled back the fix for PY-10771 since we'll reimplement it using default SQL user parameters. --- .../src/com/jetbrains/python/codeInsight/PyInjectionUtil.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python/src/com/jetbrains/python/codeInsight/PyInjectionUtil.java b/python/src/com/jetbrains/python/codeInsight/PyInjectionUtil.java index c1ff4f2c555d..97578c6e754b 100644 --- a/python/src/com/jetbrains/python/codeInsight/PyInjectionUtil.java +++ b/python/src/com/jetbrains/python/codeInsight/PyInjectionUtil.java @@ -84,8 +84,7 @@ public class PyInjectionUtil { */ @NotNull public static InjectionResult registerStringLiteralInjection(@NotNull PsiElement element, @NotNull MultiHostRegistrar registrar) { - // Assume percent formatting since the MySQL parser cannot handle Python-style substitutions - return processStringLiteral(element, registrar, "", "", Formatting.PERCENT); + return processStringLiteral(element, registrar, "", "", Formatting.NONE); } private static boolean isStringLiteralPart(@NotNull PsiElement element, @Nullable PsiElement context) {