Update 达梦 SaveQueues bug

This commit is contained in:
sunkaixuan
2024-04-22 12:46:27 +08:00
parent d3bd11071d
commit 8c85552a6e

View File

@@ -66,6 +66,10 @@ namespace SqlSugar
public virtual KeyValuePair<string, List<SugarParameter>> ToSql()
{
InsertBuilder.IsReturnIdentity = true;
if (this.SqlBuilder.SqlParameterKeyWord == ":" && !this.EntityInfo.Columns.Any(it => it.IsIdentity))
{
InsertBuilder.IsReturnIdentity = false;
}
PreToSql();
AutoRemoveDataCache();
string sql = InsertBuilder.ToSqlString();