mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
Update pgsql bug
This commit is contained in:
parent
f679f71ced
commit
875515bbdb
@ -378,6 +378,10 @@ namespace SqlSugar
|
||||
{
|
||||
defaultValue = "";
|
||||
}
|
||||
if (defaultValue.IsDate())
|
||||
{
|
||||
defaultValue = "'" + defaultValue + "'";
|
||||
}
|
||||
string sql = string.Format(AddDefaultValueSql, tableName, columnName,defaultValue);
|
||||
this.Context.Ado.ExecuteCommand(sql);
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user