QuestDb Bug

This commit is contained in:
sunkaixuan
2022-07-31 23:50:55 +08:00
parent bc8b123624
commit efff03b294

View File

@@ -84,9 +84,13 @@ namespace SqlSugar
this.Parameters.Add(new SugarParameter(parameterName, value)); this.Parameters.Add(new SugarParameter(parameterName, value));
return parameterName; return parameterName;
} }
else if (type == UtilConstants.BoolType) else if (value is int || value is long || value is short || value is short || value is byte)
{ {
return value.ObjToBool() ? "1" : "0"; return value;
}
else if (value is bool)
{
return value.ObjToString().ToLower();
} }
else if (type == UtilConstants.StringType || type == UtilConstants.ObjType) else if (type == UtilConstants.StringType || type == UtilConstants.ObjType)
{ {