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

sqlite3: minor fix for struct len check of columns whitelist and blacklist #1286

Conversation

oscar-refacton
Copy link
Contributor

When the whitelist doesn't specify any specific columns (i.e. just tables) then all columns of the whitelisted tables should be added to the column list. Instead, because the sqlite3 driver code checks the length of the incorrect slice, no columns are added to the column list at all. This then causes an error later on in the code. Merging this PR will fix the issue.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@oscar-refacton oscar-refacton changed the title fix: struct len check for columns whitelist and blacklist sqlite3: minor fix for struct len check of columns whitelist and blacklist Jun 30, 2023
@stephenafamo stephenafamo merged commit 7a80dc4 into volatiletech:master Jul 23, 2023
@oscar-refacton oscar-refacton deleted the fix-sqlite3-white/black-columns-check branch October 6, 2023 07:05
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