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.
This commit is contained in:
Andrey Vlasovskikh
2015-12-23 18:57:03 +03:00
parent 294a7086ad
commit a2c9e2aca0
@@ -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) {