From daa1a8fc1210f748b8fac01543198cb9daf24866 Mon Sep 17 00:00:00 2001 From: skx <610262374@qq.com> Date: Fri, 30 Oct 2020 19:51:39 +0800 Subject: [PATCH] - --- .../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 64f3b30c0..cd73f4a2c 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; } } @@ -113,6 +108,10 @@ namespace SqlSugar else { var type = UtilMethods.GetUnderType(value.GetType()); + if (type == UtilConstants.StringType && value.ToString().Contains("{SugarSeq:=}")) + { + return value.ToString().Replace("{SugarSeq:=}", ""); + } if (type == UtilConstants.DateType) { var date = value.ObjToDate();