mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user