From 99f37e08af8e1a25b870375a77861ae0dda4b376 Mon Sep 17 00:00:00 2001 From: skx <610262374@qq.com> Date: Fri, 30 Oct 2020 18:50:34 +0800 Subject: [PATCH] Oracle SubInsert bug --- .../Realization/Oracle/SqlBuilder/OracleInsertBuilder.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Src/Asp.Net/SqlSugar/Realization/Oracle/SqlBuilder/OracleInsertBuilder.cs b/Src/Asp.Net/SqlSugar/Realization/Oracle/SqlBuilder/OracleInsertBuilder.cs index bc9594ad6..3246323ed 100644 --- a/Src/Asp.Net/SqlSugar/Realization/Oracle/SqlBuilder/OracleInsertBuilder.cs +++ b/Src/Asp.Net/SqlSugar/Realization/Oracle/SqlBuilder/OracleInsertBuilder.cs @@ -96,6 +96,11 @@ namespace SqlSugar batchInsetrSql.AppendLine("SELECT 1 FROM DUAL"); } var result= batchInsetrSql.ToString(); + if (result.Contains("{SugarSeq:=}")) + { + result = result.Replace("\"{SugarSeq:=}", ""); + result = result.Replace("{SugarSeq:=}\"", ""); + } return result; } }