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 for methods like is_compressed() not working. #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jaysonlarose
Copy link

Anything that tries to work with usage data for the sqlite_master virtual table would fail, as it returns None for quantity values.

This pull requests corrects that by leaving sqlite_master out of the list of tables returned by the .tables() method.

I also fixed an error where the value for the is_compressed() method would never cache.

causing exceptions with methods that try to return stat data from it,
such as `is_compressed()`.
Comment on lines +243 to +245
# Why include sqlite_master if it doesn't hold usage data?
# -JL
#return [t['name'] for t in tables] + ['sqlite_master']
Copy link
Owner

Choose a reason for hiding this comment

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

Good catch! Thanks for opening this PR! I'm sorry for taking this long to review it, I somehow never received an email notification for it. :(

Just a nit:

Suggested change
# Why include sqlite_master if it doesn't hold usage data?
# -JL
#return [t['name'] for t in tables] + ['sqlite_master']
# Do not include `sqlite_master` because it doesn't hold usage data

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.

None yet

2 participants