ACT-544 Fix DB2 metadata problem

Description

The issue occurred because the db2-user executing the test was DBA. Since our db2 database contains 2 schema's(SCM_ACTIVITI and SCM_TESLA), and there is a table named ACTIVITY_INSTANCE in SCM_TESLA, the db2 JDBC MetaData returns 2 tables with the same prefix for eg. ACT_RU_TASK and ACTIVITY_INSTANCE.

So the Java Code "org.activiti.engine.impl.persistence.entity.TableDataManager" line 159 should check if the table name is db2, If it is DB2 tableNameFilter = databaseTablePrefix+"ACT" + databaseMetaData.getSearchStringEscape() + "_%";

This will not be selected the table named ACTIVITY_INSTANCE.

Assignee

Joram Barrez

Reporter

long chen

Labels

None

Components

Fix versions

Priority

Major
Configure