From e561d30c7521bbaed33ad47d2b52d56d2f881d70 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Sat, 2 Sep 2023 13:45:43 +0800 Subject: [PATCH] Update tracking diff --- .../SqlSugar/Abstract/UpdateProvider/UpdateableHelper.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Src/Asp.NetCore2/SqlSugar/Abstract/UpdateProvider/UpdateableHelper.cs b/Src/Asp.NetCore2/SqlSugar/Abstract/UpdateProvider/UpdateableHelper.cs index 5cacb0e04..2cdd0e76e 100644 --- a/Src/Asp.NetCore2/SqlSugar/Abstract/UpdateProvider/UpdateableHelper.cs +++ b/Src/Asp.NetCore2/SqlSugar/Abstract/UpdateProvider/UpdateableHelper.cs @@ -600,7 +600,7 @@ namespace SqlSugar } private void After(string sql) { - if (this.IsEnableDiffLogEvent) + if (this.IsEnableDiffLogEvent && !string.IsNullOrEmpty(sql)) { var isDisableMasterSlaveSeparation = this.Ado.IsDisableMasterSlaveSeparation; this.Ado.IsDisableMasterSlaveSeparation = true; @@ -650,7 +650,7 @@ namespace SqlSugar } private void Before(string sql) { - if (this.IsEnableDiffLogEvent) + if (this.IsEnableDiffLogEvent&&!string.IsNullOrEmpty(sql)) { var isDisableMasterSlaveSeparation = this.Ado.IsDisableMasterSlaveSeparation; this.Ado.IsDisableMasterSlaveSeparation = true;