Browse Source

Update MySqlBulkCopy

SqlSugar5
sunkaixuan 2 years ago
parent
commit
9db5ae2815
  1. 2
      Src/Asp.Net/SqlSugar/Realization/MySql/SqlBuilder/MySqlBlukCopy.cs

2
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");
}

Loading…
Cancel
Save