From 6e14b620f9f4cef23ef516e89e8ccfc60c72ab25 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Sun, 6 Nov 2022 11:24:31 +0800 Subject: [PATCH] Update clickhouse --- .../ClickHouse/SqlBuilder/ClickHouseInsertBuilder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/Asp.NetCore2/SqlSugar.ClickHouseCore/ClickHouse/SqlBuilder/ClickHouseInsertBuilder.cs b/Src/Asp.NetCore2/SqlSugar.ClickHouseCore/ClickHouse/SqlBuilder/ClickHouseInsertBuilder.cs index 5ae61792a..4221d30f0 100644 --- a/Src/Asp.NetCore2/SqlSugar.ClickHouseCore/ClickHouse/SqlBuilder/ClickHouseInsertBuilder.cs +++ b/Src/Asp.NetCore2/SqlSugar.ClickHouseCore/ClickHouse/SqlBuilder/ClickHouseInsertBuilder.cs @@ -160,7 +160,7 @@ namespace SqlSugar.ClickHouse 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()"); + Check.ExceptionEasy("SQL is too long 。Use db.Fastest().PageSize(300000).BulkCopy(insertObjs) or Insertable(List).UseParamter().ExecuteCommand() ", "Sql太长你可以使用 db.Fastest().PageSize(300000).BulkCopy(insertObjs)或者 Insertable(List).UseParamter().ExecuteCommand()"); } return result; }