This commit is contained in:
sunkaixuan
2022-07-30 22:29:15 +08:00
parent 1977c60aac
commit 55ba0287aa

View File

@@ -80,7 +80,7 @@ namespace SqlSugar
object value = null;
if (it.Value is DateTime)
{
return $" cast('{it.Value.ObjToDate().ToString("yyyy-MM-dd HH:mm:ss.fff")}' as date)";
return $" cast('{it.Value.ObjToDate().ToString("yyyy-MM-dd HH:mm:ss.fff")}' as timestamp)";
}
else if (it.Value is int || it.Value is long ||it.Value is short || it.Value is short || it.Value is byte)
{