Browse Source

Update Oracle Insertable

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

9
Src/Asp.Net/SqlSugar/Realization/Oracle/SqlBuilder/OracleInsertBuilder.cs

@ -87,7 +87,14 @@ namespace SqlSugar
batchInsetrSql.AppendLine(") ");
}
batchInsetrSql.AppendLine("SELECT 1 FROM DUAL");
if (identities.HasValue())
{
batchInsetrSql.AppendLine("SELECT "+ (this.OracleSeqInfoList.First().Value-1) + " FROM DUAL");
}
else
{
batchInsetrSql.AppendLine("SELECT 1 FROM DUAL");
}
var result= batchInsetrSql.ToString();
return result;
}

Loading…
Cancel
Save