From 4fc2ed32d22629062190c8e16e373f2580453c3b Mon Sep 17 00:00:00 2001 From: 2dust <31833384+2dust@users.noreply.github.com> Date: Wed, 4 Jan 2023 15:47:08 +0800 Subject: [PATCH] bug fix --- v2rayN/v2rayN/Handler/ConfigHandler.cs | 4 ++-- v2rayN/v2rayN/Handler/LazyConfig.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/v2rayN/v2rayN/Handler/ConfigHandler.cs b/v2rayN/v2rayN/Handler/ConfigHandler.cs index c684acd1..660f12ee 100644 --- a/v2rayN/v2rayN/Handler/ConfigHandler.cs +++ b/v2rayN/v2rayN/Handler/ConfigHandler.cs @@ -1194,11 +1194,11 @@ namespace v2rayN.Handler } if (isSub) { - SqliteHelper.Instance.Execute($"delete from ProfileItem where isSub = 1 and subid = {subid}"); + SqliteHelper.Instance.Execute($"delete from ProfileItem where isSub = 1 and subid = '{subid}'"); } else { - SqliteHelper.Instance.Execute($"delete from ProfileItem where subid = {subid}"); + SqliteHelper.Instance.Execute($"delete from ProfileItem where subid = '{subid}'"); } return 0; diff --git a/v2rayN/v2rayN/Handler/LazyConfig.cs b/v2rayN/v2rayN/Handler/LazyConfig.cs index 66d67276..bd2fa7f2 100644 --- a/v2rayN/v2rayN/Handler/LazyConfig.cs +++ b/v2rayN/v2rayN/Handler/LazyConfig.cs @@ -92,7 +92,7 @@ namespace v2rayN.Handler where 1=1 "; if (!Utils.IsNullOrEmpty(subid)) { - sql += $" and a.subid = {subid}"; + sql += $" and a.subid = '{subid}'"; } if (!Utils.IsNullOrEmpty(filter)) {