Update Clickhouse

This commit is contained in:
sunkaixuan 2022-09-21 13:28:38 +08:00
parent 31a49e3499
commit 2c3d38f140

View File

@ -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;
}
}