IDEMPIERE-6104 - Table Partitioning for List Type Key Columns (#2310)

This commit is contained in:
Peter Takács 2024-04-10 19:15:33 +02:00 committed by Carlos Ruiz
parent 9799cebac8
commit adea9db390
2 changed files with 2 additions and 0 deletions

View File

@ -553,6 +553,7 @@ public class TablePartitionService implements ITablePartitionService {
String s = rs.getString(partitionKeyColumn.getColumnName());
name.append(s);
if (DisplayType.isText(partitionKeyColumn.getAD_Reference_ID()) || partitionKeyColumn.getAD_Reference_ID() == DisplayType.YesNo
|| DisplayType.isList(partitionKeyColumn.getAD_Reference_ID())
|| "EntityType".equals(partitionKeyColumn.getColumnName())
|| "AD_Language".equals(partitionKeyColumn.getColumnName()))
expression.append(DB.TO_STRING(s));

View File

@ -890,6 +890,7 @@ public class TablePartitionService implements ITablePartitionService {
updateStmt.append(partitionKeyColumn.getColumnName()).append("=");
if (DisplayType.isText(partitionKeyColumn.getAD_Reference_ID()) || partitionKeyColumn.getAD_Reference_ID() == DisplayType.YesNo
|| DisplayType.isList(partitionKeyColumn.getAD_Reference_ID())
|| "EntityType".equals(partitionKeyColumn.getColumnName())
|| "AD_Language".equals(partitionKeyColumn.getColumnName()))
updateStmt.append("'").append(listValue).append("' ");