Skip to content
Snippets Groups Projects
Commit a621f12b authored by Jarosław Staniek's avatar Jarosław Staniek
Browse files

Kexi: Fix build when SQLite < 3.8.3 is used

This is due to use of SQLITE_DETERMINISTIC by the new SQL functions introduced in 2.9.8.
SQLITE_DETERMINISTIC is available since SQLite 3.8.3.

Big thanks to Rex Dieter.

BUG:353933
FIXED-IN:2.9.9
parent 6641b7f5
No related branches found
No related tags found
No related merge requests found
......@@ -92,12 +92,16 @@ static void soundexFunc(
bool createCustomSQLiteFunctions(sqlite3 *db)
{
int eTextRep = SQLITE_UTF8;
#if SQLITE_VERSION_NUMBER >= 3008003
eTextRep |= SQLITE_DETERMINISTIC;
#endif
if (!tryExec(db, "SELECT SOUNDEX()")) {
int res = sqlite3_create_function_v2(
db,
"SOUNDEX",
1, //nArg
SQLITE_UTF8 | SQLITE_DETERMINISTIC, // eTextRep
eTextRep,
0, // pApp
soundexFunc,
0, // xStep
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment