diff --git a/Src/Asp.Net/SqlSugar/Realization/MySql/SqlBuilder/MySqlBlukCopy.cs b/Src/Asp.Net/SqlSugar/Realization/MySql/SqlBuilder/MySqlBlukCopy.cs index dcc087196..4d3d55e42 100644 --- a/Src/Asp.Net/SqlSugar/Realization/MySql/SqlBuilder/MySqlBlukCopy.cs +++ b/Src/Asp.Net/SqlSugar/Realization/MySql/SqlBuilder/MySqlBlukCopy.cs @@ -176,7 +176,7 @@ namespace SqlSugar { sb.Append(row[colum].ObjToDate().ToString("yyyy-MM-dd HH:mm:ss.fff")); } - else if (colum.DataType == UtilConstants.DateType && row[colum] != null && row[colum] == DBNull.Value) + else if (row[colum] == null || row[colum] == DBNull.Value) { sb.Append("NULL"); }