mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-20 23:19:36 +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 = "";
|
defaultValue = "";
|
||||||
}
|
}
|
||||||
if (defaultValue.IsDate())
|
if (defaultValue.IsDate() && !AddDefaultValueSql.Contains("'{2}'"))
|
||||||
{
|
{
|
||||||
defaultValue = "'" + defaultValue + "'";
|
defaultValue = "'" + defaultValue + "'";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user