fix: 报警插件记录到questdb时出现错误sql

This commit is contained in:
Diego
2024-08-30 17:06:54 +08:00
parent d655a7c2f6
commit c9ef8bcf6a

View File

@@ -44,7 +44,7 @@ public partial class SqlHisAlarm : BusinessBaseWithCacheVarModel<HistoryAlarm>
//.SplitTable()
if (db.CurrentConnectionConfig.DbType == SqlSugar.DbType.QuestDB)
result = await db.Insertable(dbInserts).AS(_driverPropertys.TableName).UseParameter().ExecuteCommandAsync().ConfigureAwait(false);//不要加分表
result = await db.Insertable(dbInserts).AS(_driverPropertys.TableName).ExecuteCommandAsync().ConfigureAwait(false);//不要加分表
else
result = await db.Fastest<HistoryAlarm>().AS(_driverPropertys.TableName).PageSize(50000).BulkCopyAsync(dbInserts).ConfigureAwait(false);