Skip to content
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

fix: handle mysql schemas in column reflection #443

Merged
merged 3 commits into from
Apr 25, 2023

Conversation

EtienneDG
Copy link
Contributor

Proposed fix for #442 .

In the end I edited only the MySQL part.

Schema management (per DB) for postgre is a bit different and non fully-qualified tables are not always considered to be in public schema.

@adrien-berchet had some trouble wrapping my head around all the fixtures, tried to simplify a bit what was made in the test suite I edited.

Copy link
Member

@adrien-berchet adrien-berchet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much for this work @EtienneDG !

geoalchemy2/admin/dialects/mysql.py Show resolved Hide resolved
Copy link
Member

@adrien-berchet adrien-berchet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Just a few simplifications and I will approve this.

tests/schema_fixtures.py Outdated Show resolved Hide resolved
tests/schema_fixtures.py Outdated Show resolved Hide resolved
tests/test_functional_mysql.py Outdated Show resolved Hide resolved
@adrien-berchet adrien-berchet merged commit a864491 into geoalchemy:master Apr 25, 2023
@adrien-berchet
Copy link
Member

Thank you very much @EtienneDG !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants