Update Clikchouse

This commit is contained in:
sunkaixuan 2022-10-30 12:04:18 +08:00
parent f4c29ebd02
commit a1dc5e6da9

View File

@ -98,7 +98,14 @@ namespace SqlSugar.ClickHouse
{
date = UtilMethods.GetMinDate(this.Context.CurrentConnectionConfig);
}
return "'" + date.ToString("yyyy-MM-dd HH:mm:ss") + "'";
if (this.Context.CurrentConnectionConfig?.MoreSettings?.DisableMillisecond == true)
{
return "'" + date.ToString("yyyy-MM-dd HH:mm:ss") + "'";
}
else
{
return "'" + date.ToString("yyyy-MM-dd HH:mm:ss.fff") + "'";
}
}
private string GetString(object value)