-
Notifications
You must be signed in to change notification settings - Fork 32
fix: use empty schema name by default #32
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
Conversation
@@ -515,7 +527,7 @@ def get_table_names(self, connection, schema=None, **kw): | |||
FROM information_schema.tables | |||
WHERE table_schema = '{}' | |||
""".format( | |||
schema | |||
schema or "" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By default schema
arg is None
, so it tried to search for tables with schema 'None'
. Not sure how I've written this, it's not smart at all. Fixing it.
answer = ["users", "user_tmp", "email_addresses", "dingalings"] | ||
eq_(table_names, answer) | ||
else: | ||
answer = ["dingalings", "email_addresses", "user_tmp", "users"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
user_tmp
is a temporary table, adding it into the expected results
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes introduced in this PR (i.e. schema name and table name test override) LGTM 👍
Approval pending the base PR
Merging to unblock further work |
The PR is based on another: #24