mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-06-28 13:34:32 +08:00
Update ClickHouse
This commit is contained in:
parent
2cb7781e72
commit
fd988e34f7
@ -144,6 +144,10 @@ namespace SqlSugar.ClickHouse
|
||||
else
|
||||
{
|
||||
sql = sql.Replace(param.ParameterName, "{" + newName + ":" + dbtype + "}");
|
||||
if (dbtype.ObjToString() == "DateTime"&¶m.Value==DBNull.Value)
|
||||
{
|
||||
param.Value = Convert.ToDateTime("1900-01-01");
|
||||
}
|
||||
}
|
||||
param.ParameterName = newName;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user