Skip to content

Commit

Permalink
Merge pull request #2139 from wziebicki/patch-1
Browse files Browse the repository at this point in the history
UniqueConstraintSnapshotGenerator - Add table name to OracleDB query
  • Loading branch information
nvoxland committed Jan 24, 2022
2 parents 462d721 + 4f29d75 commit 254a5a9
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -229,7 +229,7 @@ protected List<CachedRow> listConstraints(Table table, DatabaseSnapshot snapshot
"[ic].[key_ordinal]";

} else if (database instanceof OracleDatabase) {
sql = "select ucc.owner as constraint_container, ucc.constraint_name as constraint_name, ucc.column_name, f.validated as constraint_validate " +
sql = "select ucc.owner as constraint_container, ucc.constraint_name as constraint_name, ucc.column_name, f.validated as constraint_validate, ucc.table_name " +
"from all_cons_columns ucc " +
"INNER JOIN all_constraints f " +
"ON ucc.owner = f.owner " +
Expand Down

0 comments on commit 254a5a9

Please sign in to comment.