IDEMPIERE-5586 Implement ID independent migration script (#1711)

- Update should use ID column for where clause if ID value is official id.
This commit is contained in:
hengsin 2023-03-10 19:16:26 +08:00 committed by GitHub
parent f0532b214a
commit 3877a672c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -2652,7 +2652,7 @@ public abstract class PO
//params for insert statement
List<Object> params = new ArrayList<Object>();
String where = withValues ? get_WhereClause(true, get_ValueAsString(getUUIDColumnName())) : get_WhereClause(true);
String where = withValues && get_ID() > MTable.MAX_OFFICIAL_ID ? get_WhereClause(true, get_ValueAsString(getUUIDColumnName())) : get_WhereClause(true);
List<Object> optimisticLockingParams = new ArrayList<Object>();
if (is_UseOptimisticLocking() && m_optimisticLockingColumns != null && m_optimisticLockingColumns.length > 0)