Oracle SubInsert bug

This commit is contained in:
skx 2020-10-30 18:38:39 +08:00
parent 8fc8cbc511
commit 8e84d98b1a

View File

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