From 8e84d98b1ad0e13b78432ab6b5e68c77f4fc4798 Mon Sep 17 00:00:00 2001 From: skx <610262374@qq.com> Date: Fri, 30 Oct 2020 18:38:39 +0800 Subject: [PATCH] Oracle SubInsert bug --- .../Realization/Oracle/SqlBuilder/OracleInsertBuilder.cs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Src/Asp.Net/SqlSugar/Realization/Oracle/SqlBuilder/OracleInsertBuilder.cs b/Src/Asp.Net/SqlSugar/Realization/Oracle/SqlBuilder/OracleInsertBuilder.cs index b4cef118e..bc9594ad6 100644 --- a/Src/Asp.Net/SqlSugar/Realization/Oracle/SqlBuilder/OracleInsertBuilder.cs +++ b/Src/Asp.Net/SqlSugar/Realization/Oracle/SqlBuilder/OracleInsertBuilder.cs @@ -96,11 +96,6 @@ 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; } } @@ -112,6 +107,10 @@ namespace SqlSugar } else { + if (value.GetType() == UtilConstants.StringType && value.ToString().Contains("{SugarSeq:=}")) + { + return value.ToString().Replace("\"{SugarSeq:=}", "").Replace("{SugarSeq:=}\"", ""); + } var type = UtilMethods.GetUnderType(value.GetType()); if (type == UtilConstants.DateType) {