Synchronization code

This commit is contained in:
sunkaixuan 2022-12-04 05:20:57 +08:00
parent 55c6c91658
commit 1a7f424c5f

View File

@ -200,6 +200,10 @@ namespace SqlSugar
{
return $" CAST( NULL AS DATETIME) ";
}
else if (entityColumnInfo != null && entityColumnInfo.UnderType == UtilConstants.DateType && value == null && this.Context.CurrentConnectionConfig.DbType == DbType.PostgreSQL)
{
return $" CAST( NULL AS timestamp) ";
}
if (value == null)
return "null";
var type =UtilMethods.GetUnderType(value.GetType());