Commit d931d7dd authored by Carlos Garnacho's avatar Carlos Garnacho

libtracker-data: Define constraint values for older SQLite versions

These were added in sqlite 3.21.0. For the places where updating
SQLite is not easy/possible, just define those. Presumably older
SQLite versions will fall back through other operators in the
xBestIndex method, either way we won't get those from the DB engine.
parent ea28518a
Pipeline #56715 passed with stage
in 1 minute and 54 seconds
......@@ -22,6 +22,15 @@
#include "tracker-vtab-triples.h"
/* Define some constraints for older SQLite, we will never get
* those in older versions, and simplifies checks in code.
*/
#if SQLITE_VERSION_NUMBER<=3021000
#define SQLITE_INDEX_CONSTRAINT_NE 68
#define SQLITE_INDEX_CONSTRAINT_ISNOTNULL 70
#define SQLITE_INDEX_CONSTRAINT_ISNULL 71
#endif
enum {
COL_ROWID,
COL_GRAPH,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment