Skip to content

chore: make the fk query joins consistent #703

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions google/cloud/sqlalchemy_spanner/sqlalchemy_spanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -1481,11 +1481,11 @@ def get_multi_foreign_keys(
)
FROM information_schema.table_constraints AS tc
JOIN information_schema.constraint_column_usage AS ccu
ON ccu.table_catalog = tc.table_catalog
ON ccu.constraint_catalog = tc.table_catalog
and ccu.constraint_schema = tc.table_schema
and ccu.constraint_name = tc.constraint_name
JOIN information_schema.constraint_table_usage AS ctu
ON ctu.table_catalog = tc.table_catalog
ON ctu.constraint_catalog = tc.table_catalog
and ctu.constraint_schema = tc.table_schema
and ctu.constraint_name = tc.constraint_name
JOIN information_schema.key_column_usage AS kcu
Expand Down