mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-23 04:23:47 +08:00
Update Doris
This commit is contained in:
@@ -523,6 +523,7 @@ namespace SqlSugar
|
||||
if (this.CurrentConnectionConfig.MoreSettings == null)
|
||||
this.CurrentConnectionConfig.MoreSettings = new ConnMoreSettings();
|
||||
this.CurrentConnectionConfig.MoreSettings.DatabaseModel = DbType.Doris;
|
||||
this.CurrentConnectionConfig.MoreSettings.DisableNvarchar = true;
|
||||
break;
|
||||
case DbType.TDengine:
|
||||
Check.Exception(SugarCompatible.IsFramework, "TDengine only support .net core");
|
||||
|
@@ -154,8 +154,14 @@ namespace SqlSugar
|
||||
batchInsetrSql.Append("), ");
|
||||
}
|
||||
}
|
||||
|
||||
batchInsetrSql.AppendLine(";select @@IDENTITY");
|
||||
if (DorisHelper.IsDoris(this.Context))
|
||||
{
|
||||
//doris insert ignore
|
||||
}
|
||||
else
|
||||
{
|
||||
batchInsetrSql.AppendLine(";select @@IDENTITY");
|
||||
}
|
||||
var result = batchInsetrSql.ToString();
|
||||
result = GetMySqlIgnore(result);
|
||||
return result;
|
||||
|
Reference in New Issue
Block a user