mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-18 20:08:15 +08:00
- 修复 Oracle nvarchar2 主键批量更新的问题;#411
This commit is contained in:
@ -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("(");
|
||||
|
Reference in New Issue
Block a user