mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-24 07:22:57 +08:00
Synchronization code
This commit is contained in:
parent
3a8b712678
commit
da63abdf3e
@ -438,7 +438,7 @@ namespace SqlSugar
|
||||
defaultValue = "";
|
||||
}
|
||||
var template = AddDefaultValueSql;
|
||||
if (defaultValue != null && defaultValue.ToLower() == "getdate()")
|
||||
if (defaultValue != null && defaultValue.Replace(" ","").Contains("()"))
|
||||
{
|
||||
template = template.Replace("'{2}'", "{2}");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user