-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Don't add ATC table name to registry until after sqlite DB initialization #8233
Conversation
|
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.
We discussed this in office hours today. The conclusion is that no one understands why this bug is present, but this fix seems okay.
Thanks for reviewing/merging! Sorry I missed the office hours agenda. If anyone is curious, this bug was happening because |
Thank you so much for contributing the patch! |
I was having the same issue for moz_bookmarks: E0301 11:34:47.283597 -640033728 virtual_table.cpp:1115] Error creating named virtual table: firefox_bookmarks (1) And I was guessing this could be due to the path in the ATC file: {
"auto_table_construction": {
"firefox_bookmarks": {
"platform": "darwin",
"query": "SELECT * FROM moz_bookmarks;",
"path": "/Users/%/Library/Application Support/Firefox/Profiles/%/places.sqlite",
"columns": [
"id",
"type",
"fk",
"parent",
"position",
"title",
"keyword_id",
"folder_type",
"dateAdded",
"lastModified",
"guid",
"syncStatus",
"syncChangeCounter"
]
}
} There are two (or probably more) profiles in the Thanks! |
Heads up, this may have broken something around ATC table creation via plugins. We're still debugging |
Fixes #8232
I'm not sure if there are nuances I'm missing or if there is a good way to test this section of code, but this fixes a bug where the first ATC table specified in a conf file is attached twice and the second attempt fails.