- 修复 Oracle nvarchar2 主键批量更新的问题;#411

This commit is contained in:
28810
2020-08-12 15:50:56 +08:00
parent 882e671eee
commit d10816d62c
5 changed files with 181 additions and 4 deletions

View File

@ -50,7 +50,9 @@ namespace FreeSql.Oracle.Curd
{
if (_table.Primarys.Length == 1)
{
sb.Append(_commonUtils.FormatSql("{0}", _table.Primarys.First().GetMapValue(d)));
if (_table.Primarys[0].Attribute.DbType.Contains("NVARCHAR2"))
sb.Append("N");
sb.Append(_commonUtils.FormatSql("{0}", _table.Primarys[0].GetMapValue(d)));
return;
}
sb.Append("(");