Update TDengine test

This commit is contained in:
sunkaixuan 2023-08-02 08:37:19 +08:00
parent 182d90eb35
commit 214ab669d4
2 changed files with 8 additions and 1 deletions

View File

@ -44,6 +44,10 @@ namespace SqlSugar.TDengine
{
dbTypeName = "string";
}
else if (dbTypeName.ToLower() == "boolean")
{
dbTypeName = "bool";
}
return dbTypeName;
}
public override List<KeyValuePair<string, CSharpDataType>> MappingTypes

View File

@ -92,7 +92,10 @@ namespace SqlSugar.TDengine
foreach (var parameter in parameters)
{
if (parameter.Value == null) parameter.Value = DBNull.Value;
if (parameter.Value is bool)
{
parameter.Value = parameter.Value?.ToString()?.ToLower();
}
var sqlParameter = new TDengineParameter(parameter.ParameterName,parameter.Value,parameter.DbType,0);
result[i]=sqlParameter;
i++;