Browse Source

Update QuestDb Bug

SqlSugar5
sunkaixuan 2 years ago
parent
commit
a779aa3828
  1. 2
      Src/Asp.NetCore2/SqlSugar/Realization/QuestDB/DbBind/QuestDBDbBind.cs
  2. 4
      Src/Asp.NetCore2/SqlSugar/Realization/QuestDB/QuestDBProvider.cs

2
Src/Asp.NetCore2/SqlSugar/Realization/QuestDB/DbBind/QuestDBDbBind.cs

@ -79,7 +79,7 @@ namespace SqlSugar
new KeyValuePair<string, CSharpDataType>("point",CSharpDataType.@decimal),
new KeyValuePair<string, CSharpDataType>("polygon",CSharpDataType.@decimal),
new KeyValuePair<string, CSharpDataType>("int",CSharpDataType.@bool),
//new KeyValuePair<string, CSharpDataType>("int",CSharpDataType.@bool),
new KeyValuePair<string, CSharpDataType>("boolean",CSharpDataType.@bool),
new KeyValuePair<string, CSharpDataType>("bool",CSharpDataType.@bool),
new KeyValuePair<string, CSharpDataType>("box",CSharpDataType.@bool),

4
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;

Loading…
Cancel
Save