mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
Update ClickHouse
This commit is contained in:
parent
83b4450399
commit
c24811afb7
@ -133,6 +133,14 @@ namespace SqlSugar.ClickHouse
|
||||
sql = sql.Replace(param.ParameterName, "null");
|
||||
}
|
||||
}
|
||||
if (dbtype.ObjToString() == System.Data.DbType.Int64.ToString())
|
||||
{
|
||||
dbtype = ClickHouseDbBind.MappingTypesConst.First(it => it.Value == CSharpDataType.@long).Key;
|
||||
if (param.Value == DBNull.Value)
|
||||
{
|
||||
sql = sql.Replace(param.ParameterName, "null");
|
||||
}
|
||||
}
|
||||
if (dbtype.ObjToString() == System.Data.DbType.SByte.ToString())
|
||||
{
|
||||
dbtype = ClickHouseDbBind.MappingTypesConst.First(it => it.Value == CSharpDataType.@sbyte).Key;
|
||||
|
Loading…
Reference in New Issue
Block a user