Browse Source

Update oracle

pull/30/head
sunkaixuan 2 years ago
parent
commit
feee5a904b
  1. 4
      Src/Asp.Net/SqlSugar/Realization/Oracle/SqlBuilder/OracleUpdateBuilder.cs

4
Src/Asp.Net/SqlSugar/Realization/Oracle/SqlBuilder/OracleUpdateBuilder.cs

@ -10,6 +10,10 @@ namespace SqlSugar
{ {
protected override string TomultipleSqlString(List<IGrouping<int, DbColumnInfo>> groupList) protected override string TomultipleSqlString(List<IGrouping<int, DbColumnInfo>> groupList)
{ {
if (groupList.Count == 0)
{
return " select 0 from dual";
}
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
sb.AppendLine("Begin"); sb.AppendLine("Begin");
sb.AppendLine(string.Join("\r\n", groupList.Select(t => sb.AppendLine(string.Join("\r\n", groupList.Select(t =>

Loading…
Cancel
Save