Description: Fix sqlite flags
 Apply flags to optimize the regexp engine.
 .
 Given a value and a regexp, the result is determinitic. 
 .
 And there's no side effects to evaluating a regexp.
Bug-Debian: https://bugs.debian.org/1150893
Author: SpikeTheHobbitMage@runbox.com
--- a/pcre2.c
+++ b/pcre2.c
@@ -154,6 +154,8 @@
         *err = "calloc: ENOMEM";
         return 1;
     }
-    sqlite3_create_function(db, "REGEXP", 2, SQLITE_UTF8, cache, regexp, NULL, NULL);
+    sqlite3_create_function(
+        db, "REGEXP", 2, SQLITE_UTF8 | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS,
+        cache, regexp, NULL, NULL);
     return 0;
 }
