Update clickhouse db

This commit is contained in:
sunkaixuan 2023-04-11 14:26:23 +08:00
parent 914781df6d
commit 6607021db3

View File

@ -145,9 +145,16 @@ namespace SqlSugar.ClickHouse
{
sql = sql.Replace(param.ParameterName, "null");
}
else if (arrayPars != null&& arrayPars.Contains(param.ParameterName))
else if (arrayPars != null && arrayPars.Contains(param.ParameterName))
{
sql= sql.Replace(param.ParameterName, "'" +this.Context.Utilities.SerializeObject(param.Value).ToSqlFilter() + "'");
if (param.Value == null)
{
sql = sql.Replace(param.ParameterName, "null");
}
else
{
sql = sql.Replace(param.ParameterName, "'" + this.Context.Utilities.SerializeObject(param.Value).ToSqlFilter() + "'");
}
}
else
{