Commit 9ff2066
committed
bug: Support Retrieval of Cross-Schema Foreign Keys
Allow `get_multi_foreign_keys` to retrieve foreign keys between tables
in different schemas. The current SQL used to retrieve them has a
mistake in the JOINs used to retrieve them, confusing the `table_schema`
column and the `constraint_schema` column. This goes unnoticed as long
as everything is in the same schema.
fixes: #6381 parent 5077ddb commit 9ff2066
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1472 | 1472 | | |
1473 | 1473 | | |
1474 | 1474 | | |
1475 | | - | |
| 1475 | + | |
| 1476 | + | |
| 1477 | + | |
1476 | 1478 | | |
1477 | 1479 | | |
1478 | | - | |
| 1480 | + | |
1479 | 1481 | | |
1480 | 1482 | | |
1481 | 1483 | | |
| |||
0 commit comments