1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-16 11:19:18 +01:00

Fix FTS on Mac & Win.

This commit is contained in:
John Maguire 2010-06-21 09:32:57 +00:00
parent fb717b30a2
commit f544e28051

View File

@ -211,6 +211,14 @@ void Database::StaticInit() {
}
sStaticInitDone = true;
sFTSTokenizer = new sqlite3_tokenizer_module;
sFTSTokenizer->iVersion = 0;
sFTSTokenizer->xCreate = &Database::FTSCreate;
sFTSTokenizer->xDestroy = &Database::FTSDestroy;
sFTSTokenizer->xOpen = &Database::FTSOpen;
sFTSTokenizer->xNext = &Database::FTSNext;
sFTSTokenizer->xClose = &Database::FTSClose;
#ifndef Q_WS_X11
// We statically link libqsqlite.dll on windows and mac so these symbols are already
// available
@ -281,14 +289,6 @@ void Database::StaticInit() {
sLoadedSqliteSymbols = true;
}
#endif
sFTSTokenizer = new sqlite3_tokenizer_module;
sFTSTokenizer->iVersion = 0;
sFTSTokenizer->xCreate = &Database::FTSCreate;
sFTSTokenizer->xDestroy = &Database::FTSDestroy;
sFTSTokenizer->xOpen = &Database::FTSOpen;
sFTSTokenizer->xNext = &Database::FTSNext;
sFTSTokenizer->xClose = &Database::FTSClose;
}
bool Database::Like(const char* needle, const char* haystack) {