mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-15 18:55:07 +08:00
Update Oracle SubInsert BUG
This commit is contained in:
@@ -202,6 +202,10 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
if (item.IsIdentity||item.IsIgnore)
|
if (item.IsIdentity||item.IsIgnore)
|
||||||
continue;
|
continue;
|
||||||
|
if (!string.IsNullOrEmpty(item.OracleSequenceName)&&this.Context.CurrentConnectionConfig.DbType==DbType.Oracle)
|
||||||
|
{
|
||||||
|
pkValue = "{SugarSeq:=}"+item.OracleSequenceName+ ".nextval{SugarSeq:=}";
|
||||||
|
}
|
||||||
if (item.PropertyInfo.Name == key)
|
if (item.PropertyInfo.Name == key)
|
||||||
{
|
{
|
||||||
insertDictionary.Add(item.DbColumnName, pkValue);
|
insertDictionary.Add(item.DbColumnName, pkValue);
|
||||||
|
@@ -96,6 +96,11 @@ namespace SqlSugar
|
|||||||
batchInsetrSql.AppendLine("SELECT 1 FROM DUAL");
|
batchInsetrSql.AppendLine("SELECT 1 FROM DUAL");
|
||||||
}
|
}
|
||||||
var result= batchInsetrSql.ToString();
|
var result= batchInsetrSql.ToString();
|
||||||
|
if (result.Contains("{SugarSeq:=}"))
|
||||||
|
{
|
||||||
|
result = result.Replace("\"{SugarSeq:=}", "");
|
||||||
|
result = result.Replace("{SugarSeq:=}\"", "");
|
||||||
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user