diff --git a/Src/Asp.Net/SqlSugar/Abstract/DbMaintenanceProvider/Methods.cs b/Src/Asp.Net/SqlSugar/Abstract/DbMaintenanceProvider/Methods.cs index c994462d3..21f933342 100644 --- a/Src/Asp.Net/SqlSugar/Abstract/DbMaintenanceProvider/Methods.cs +++ b/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 + "'"; }