mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-15 18:55:07 +08:00
Update pgsql bug
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user