From feee5a904b771edd686249071af8b7a387142ea4 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Thu, 22 Dec 2022 12:03:46 +0800 Subject: [PATCH] Update oracle --- .../Realization/Oracle/SqlBuilder/OracleUpdateBuilder.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Src/Asp.Net/SqlSugar/Realization/Oracle/SqlBuilder/OracleUpdateBuilder.cs b/Src/Asp.Net/SqlSugar/Realization/Oracle/SqlBuilder/OracleUpdateBuilder.cs index 2beabd28b..c39494312 100644 --- a/Src/Asp.Net/SqlSugar/Realization/Oracle/SqlBuilder/OracleUpdateBuilder.cs +++ b/Src/Asp.Net/SqlSugar/Realization/Oracle/SqlBuilder/OracleUpdateBuilder.cs @@ -10,6 +10,10 @@ namespace SqlSugar { protected override string TomultipleSqlString(List> groupList) { + if (groupList.Count == 0) + { + return " select 0 from dual"; + } StringBuilder sb = new StringBuilder(); sb.AppendLine("Begin"); sb.AppendLine(string.Join("\r\n", groupList.Select(t =>