- 修复 Pgsql 批量更新使用 NoneParameter 后日期类型的语法 bug;

This commit is contained in:
28810
2019-08-23 18:17:17 +08:00
parent 858e3d3dbb
commit 8e33d80b5a
7 changed files with 52 additions and 1 deletions

View File

@ -136,5 +136,14 @@ namespace FreeSql.PostgreSQL.Curd
}
sb.Append(")");
}
protected override void ToSqlCaseWhenEnd(StringBuilder sb, ColumnInfo col)
{
if (_noneParameter == false) return;
var dbtype = _commonUtils.CodeFirst.GetDbInfo(col.Attribute.MapType)?.dbtype;
if (dbtype == null) return;
sb.Append("::").Append(dbtype);
}
}
}