Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Move SQLite logging setup to before database initialization - #6296

Merged
friedbunny merged 1 commit into
masterfrom
fb-sqlite-misuse
Sep 9, 2016
Merged

friedbunny merged 1 commit into
masterfrom
fb-sqlite-misuse

Conversation

@friedbunny

@friedbunny friedbunny commented Sep 8, 2016 •

Copy link
Copy Markdown
Contributor

Fixes the SQLITE_MISUSE warning on the first launch of an app — half of #6295.

Follows-up on the initial SQLite logging implementation in #6291.

/cc @jfirebaugh

@friedbunny friedbunny added the Core The cross-platform C++ core, aka mbgl label Sep 8, 2016
@mention-bot

Copy link
Copy Markdown

@friedbunny, thanks for your PR! By analyzing this pull request, we identified @jfirebaugh and @artemp to be potential reviewers.

@jfirebaugh

Copy link
Copy Markdown
Contributor

👍

If you want you can move that whole static initializer expression into the namespace to avoid qualifying errorLogCallback.

@friedbunny

Copy link
Copy Markdown
Contributor Author

Moving sqliteVersionCheck into the namespace resulted in a slightly strange diff, but it works. 😉

- Ensure that sqlite3_config() is always called before db init.
- Should only be called once, now.
- Move sqliteVersionCheck into mapbox::sqlite namespace.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Core The cross-platform C++ core, aka mbgl

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants