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