mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
Update TDengine test
This commit is contained in:
parent
182d90eb35
commit
214ab669d4
@ -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
|
||||
|
@ -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++;
|
||||
|
Loading…
Reference in New Issue
Block a user