The join to the referenced key columns was only using the constraint
name, which is not necessarily unique. Also use the referenced table
schema and name.
- Fix many_to_many bridges with overlapping foreign keys
- Document how to add perltidy markers via filter_generated_code
+ - Fix DB2 foreign-key introspection
0.07042 2014-08-20
- Fix unescaped left braces in regexes in tests
AND tc.tabname = sr.tabname
JOIN syscat.keycoluse rkcu
ON sr.refkeyname = rkcu.constname
+ AND sr.reftabschema = rkcu.tabschema
+ AND sr.reftabname = rkcu.tabname
AND kcu.colseq = rkcu.colseq
WHERE tc.tabschema = ?
AND tc.tabname = ?