File tree Expand file tree Collapse file tree
core/src/main/kotlin/org/evomaster/core/sql Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -175,13 +175,11 @@ object SqlActionUtils {
175175
176176 // Collect all unique Ids and their associated table IDs
177177 val previousSqlActions = actions.subList(0 , i)
178- val previousPkMap = mutableMapOf<Long , TableId >()
179- previousSqlActions.forEach { action ->
180- action.seeTopGenes()
181- .flatMap { it.flatView() }
182- .filterIsInstance<SqlPrimaryKeyGene >()
183- .forEach { previousPkMap[it.uniqueId] = it.tableName }
184- }
178+ val previousPkMap = previousSqlActions
179+ .flatMap { it.seeAllGenes() }
180+ .filterIsInstance<SqlPrimaryKeyGene >()
181+ .associateBy ( { it.uniqueId} ,{ it.tableName })
182+
185183
186184 // Check each foreign key constraint defined in the table
187185 for (fkConstraint in currentAction.table.foreignKeys) {
You can’t perform that action at this time.
0 commit comments