mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-06-28 13:34:32 +08:00
Update Clickhouse
This commit is contained in:
parent
31a49e3499
commit
2c3d38f140
@ -151,6 +151,10 @@ namespace SqlSugar.ClickHouse
|
||||
|
||||
// batchInsetrSql.AppendLine(";select @@IDENTITY");
|
||||
var result = batchInsetrSql.ToString();
|
||||
if (result.Length > 150000)
|
||||
{
|
||||
Check.ExceptionEasy("SQL is too long 。Use db.Insertable(List<实体>).UseParameter().ExecuteCommand() ", "Sql太长你可以使用UseParameter内部会分页方式插入。用例:db.Insertable(List<实体>).UseParameter().ExecuteCommand()");
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user