Browse Source

Oracle SubInsert bug

pull/12/MERGE
skx 4 years ago
parent
commit
8e84d98b1a
  1. 9
      Src/Asp.Net/SqlSugar/Realization/Oracle/SqlBuilder/OracleInsertBuilder.cs

9
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)
{

Loading…
Cancel
Save