Skip to content

How to check whether SQLiteStudio is using build-in REGEXP or extension? #3938

Answered by pawelsalawa
orangelynx asked this question in Q&A
Discussion options

You must be logged in to vote

REGEXP implementation in SQLite3 is done via registering regexp() custom function.
The way that SQLiteStudio initializes database upon opening is that it loads all registered extensions first - registered extensions are those added in the Extensions Manager window - this one:

Then it registers all functions (including the regexp()).

Now, according to this documentation: https://sqlite.org/appfunc.html#multiple_calls_to_sqlite3_create_function_for_the_same_function whichever function implementation is registered later - will be in use.

This means that if you load extension through the Extension Manager, you will still use SQLiteStudio REGEXP implementation. If you want to use your own - p…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@tuffnatty
Comment options

@pawelsalawa
Comment options

@pawelsalawa
Comment options

@tuffnatty
Comment options

Answer selected by orangelynx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #3937 on February 02, 2021 17:17.