Update pgsql bug

This commit is contained in:
sunkaixuan 2022-08-29 11:56:10 +08:00
parent f679f71ced
commit 875515bbdb

View File

@ -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;