From a779aa3828254aa0996644611cd9890269adc62f Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Sun, 14 Aug 2022 08:19:38 +0800 Subject: [PATCH] Update QuestDb Bug --- .../SqlSugar/Realization/QuestDB/DbBind/QuestDBDbBind.cs | 2 +- .../SqlSugar/Realization/QuestDB/QuestDBProvider.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Src/Asp.NetCore2/SqlSugar/Realization/QuestDB/DbBind/QuestDBDbBind.cs b/Src/Asp.NetCore2/SqlSugar/Realization/QuestDB/DbBind/QuestDBDbBind.cs index a2688823c..8847e3d57 100644 --- a/Src/Asp.NetCore2/SqlSugar/Realization/QuestDB/DbBind/QuestDBDbBind.cs +++ b/Src/Asp.NetCore2/SqlSugar/Realization/QuestDB/DbBind/QuestDBDbBind.cs @@ -79,7 +79,7 @@ namespace SqlSugar new KeyValuePair("point",CSharpDataType.@decimal), new KeyValuePair("polygon",CSharpDataType.@decimal), - new KeyValuePair("int",CSharpDataType.@bool), + //new KeyValuePair("int",CSharpDataType.@bool), new KeyValuePair("boolean",CSharpDataType.@bool), new KeyValuePair("bool",CSharpDataType.@bool), new KeyValuePair("box",CSharpDataType.@bool), diff --git a/Src/Asp.NetCore2/SqlSugar/Realization/QuestDB/QuestDBProvider.cs b/Src/Asp.NetCore2/SqlSugar/Realization/QuestDB/QuestDBProvider.cs index dcdc1b8c2..4a2c0659e 100644 --- a/Src/Asp.NetCore2/SqlSugar/Realization/QuestDB/QuestDBProvider.cs +++ b/Src/Asp.NetCore2/SqlSugar/Realization/QuestDB/QuestDBProvider.cs @@ -139,10 +139,10 @@ namespace SqlSugar } else if (sqlParameter.DbType == System.Data.DbType.Boolean) { - sqlParameter.DbType = System.Data.DbType.Int32; + sqlParameter.DbType = System.Data.DbType.String; if (sqlParameter.Value != null) { - sqlParameter.Value = sqlParameter.Value.ObjToBool() ? 1 : 0; + sqlParameter.Value = sqlParameter.Value.ObjToString().ToLower(); } } ++index;