mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
fix: when default value is date, double quote appear
This commit is contained in:
parent
2dbf28b9f8
commit
c95623e012
@ -378,7 +378,7 @@ namespace SqlSugar
|
||||
{
|
||||
defaultValue = "";
|
||||
}
|
||||
if (defaultValue.IsDate())
|
||||
if (defaultValue.IsDate() && !AddDefaultValueSql.Contains("'{2}'"))
|
||||
{
|
||||
defaultValue = "'" + defaultValue + "'";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user