mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Update pgsql
This commit is contained in:
parent
0d39b0e120
commit
3ea4977b8c
@ -454,6 +454,14 @@ namespace SqlSugar
|
||||
{
|
||||
defaultValue = "'" + defaultValue + "'";
|
||||
}
|
||||
if (defaultValue != null && defaultValue.EqualCase("'current_timestamp'"))
|
||||
{
|
||||
defaultValue = defaultValue.TrimEnd('\'').TrimStart('\'');
|
||||
}
|
||||
if (defaultValue != null && defaultValue.EqualCase("'current_date'"))
|
||||
{
|
||||
defaultValue = defaultValue.TrimEnd('\'').TrimStart('\'');
|
||||
}
|
||||
string sql = string.Format(AddDefaultValueSql, tableName, columnName,defaultValue);
|
||||
this.Context.Ado.ExecuteCommand(sql);
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user