Skip to content

Commit

Permalink
0003674: Auto resolve foreign key can fail when primary keys are not
Browse files Browse the repository at this point in the history
first in table definition
  • Loading branch information
erilong committed Aug 15, 2018
1 parent c93ffcd commit a465786
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -1662,6 +1662,7 @@ public void reloadMissingForeignKeyRows(String nodeId, long dataId) {
log.debug("reloadMissingForeignKeyRows for nodeId '{}' dataId '{}' table '{}'", nodeId, dataId, data.getTableName());
TriggerHistory hist = data.getTriggerHistory();
Table table = platform.getTableFromCache(hist.getSourceCatalogName(), hist.getSourceSchemaName(), hist.getSourceTableName(), false);
table = table.copyAndFilterColumns(hist.getParsedColumnNames(), hist.getParsedPkColumnNames(), true);
Map<String, String> dataMap = data.toColumnNameValuePairs(table.getColumnNames(), CsvData.ROW_DATA);

List<TableRow> tableRows = new ArrayList<TableRow>();
Expand Down

0 comments on commit a465786

Please sign in to comment.