aboutsummaryrefslogtreecommitdiff
path: root/src/shell.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/shell.c')
-rw-r--r--src/shell.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/shell.c b/src/shell.c
index 7dd741b2d..4c50feb46 100644
--- a/src/shell.c
+++ b/src/shell.c
@@ -1480,6 +1480,12 @@ static void open_db(struct callback_data *p){
#ifndef SQLITE_OMIT_LOAD_EXTENSION
sqlite3_enable_load_extension(p->db, 1);
#endif
+#ifdef SQLITE_ENABLE_REGEXP
+ {
+ extern int sqlite3_add_regexp_func(sqlite3*);
+ sqlite3_add_regexp_func(db);
+ }
+#endif
}
}