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

Move SQLite logging setup to before database initialization #6296

Merged
merged 1 commit into from
Sep 9, 2016

Conversation

friedbunny
Copy link
Contributor

@friedbunny friedbunny commented Sep 8, 2016

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

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

@jfirebaugh
Copy link
Contributor

👍

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

@friedbunny
Copy link
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