|
@ -144,6 +144,10 @@ namespace SqlSugar.ClickHouse |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
sql = sql.Replace(param.ParameterName, "{" + newName + ":" + dbtype + "}"); |
|
|
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; |
|
|
param.ParameterName = newName; |
|
|
} |
|
|
} |
|
|