mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-06-28 13:34:32 +08:00
Update click houst
This commit is contained in:
parent
f867559e89
commit
31609a18dd
@ -125,7 +125,14 @@ namespace SqlSugar.ClickHouse
|
||||
{
|
||||
dbtype = ClickHouseDbBind.MappingTypesConst.First(it => it.Value == CSharpDataType.@decimal).Key;
|
||||
}
|
||||
sql = sql.Replace(param.ParameterName,"{"+ newName + ":"+ dbtype + "}");
|
||||
if (dbtype.ObjToString() == System.Data.DbType.Boolean.ToString())
|
||||
{
|
||||
sql = sql.Replace(param.ParameterName, param.Value.ObjToBool()?"1":"0");
|
||||
}
|
||||
else
|
||||
{
|
||||
sql = sql.Replace(param.ParameterName, "{" + newName + ":" + dbtype + "}");
|
||||
}
|
||||
param.ParameterName = newName;
|
||||
}
|
||||
sqlCommand.CommandText = sql;
|
||||
|
Loading…
Reference in New Issue
Block a user