Browse Source

fix: when default value is date, double quote appear

SqlSugar5
一万里 2 years ago
parent
commit
c95623e012
  1. 2
      Src/Asp.Net/SqlSugar/Abstract/DbMaintenanceProvider/Methods.cs

2
Src/Asp.Net/SqlSugar/Abstract/DbMaintenanceProvider/Methods.cs

@ -378,7 +378,7 @@ namespace SqlSugar
{
defaultValue = "";
}
if (defaultValue.IsDate())
if (defaultValue.IsDate() && !AddDefaultValueSql.Contains("'{2}'"))
{
defaultValue = "'" + defaultValue + "'";
}

Loading…
Cancel
Save