diff options
author | drh <drh@noemail.net> | 2012-12-31 19:18:38 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2012-12-31 19:18:38 +0000 |
commit | 14172743a22fce42e77e4ce69dee89511709ebba (patch) | |
tree | 75bca172bc3ad622e06963d314affac595e3a2f6 /src/shell.c | |
parent | 5cc3bea44ad2dc8008330934d7f8e65d4059b1fb (diff) | |
download | sqlite-14172743a22fce42e77e4ce69dee89511709ebba.tar.gz sqlite-14172743a22fce42e77e4ce69dee89511709ebba.zip |
Add the test_regexp.c module containing a cross-platform implementation
of the REGEXP operator.
FossilOrigin-Name: 46c8c01b751c1ea7fc02cc35e3b5bb99dbe46c4b
Diffstat (limited to 'src/shell.c')
-rw-r--r-- | src/shell.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/shell.c b/src/shell.c index 7dd741b2d..26de51c4f 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 sqlite3_add_regexp_func(sqlite3*); + sqlite3_add_regexp_func(db); + } +#endif } } |