- 修复 pgsql OnConflictDoUpdate 临时主键问题;#1393

This commit is contained in:
2881099
2023-01-05 16:53:25 +08:00
parent 4cd57a0afa
commit 3897da4f4f
7 changed files with 127 additions and 185 deletions

View File

@ -109,6 +109,7 @@ namespace FreeSql.KingbaseES
{
sb.Append(") DO UPDATE SET\r\n");
if (_update._tempPrimarys.Any() == false) _update._tempPrimarys = _tempPrimarys;
var sbSetEmpty = _update.InternalSbSet.Length == 0;
var sbSetIncrEmpty = _update.InternalSbSetIncr.Length == 0;
if (sbSetEmpty == false || sbSetIncrEmpty == false)