infor.com
concierge
infor u
developer portal
documentation central
customer center
Posts
Categories
Groups
ERPs
CSD
FSM/HRT
LN
M3
Syteline/ CSI
Hubs
Developer
Healthcare
Hospitality
Public Sector
Onboarding
Release Center
CloudSuites
Aerospace & Defense (LN)
Automotive (LN)
Chemicals (M3)
Corporate (FSM/HRT)
Distribution (Sx.e/CSD)
Distribution Enterprise (M3)
Engineering & Construction (LN)
Fashion (M3)
Food & Beverage (M3)
Healthcare (FSM/HRT)
Industrial (Syteline/CSI)
Industrial Enterprise (LN)
Manufacturing (M3)
Public Sector (FSM/HRT)
Solutions
Supply Chain Management (SCM)
Human Capital Management (HCM)
Events
Groups
User Groups
Your Groups
About
Email Community Support
Infor News
Migrated Forums
Home
Clovertech
Clovertech Archive
Cloverleaf
sqlite3-regex.so
RICK L. PRITCHETT
Hi everyone,
I am guessing this needed to do regex with sqlite. So far I keep getting that sqlite3 is not a column. Does anyone have a suggestion?
db eval "SELECT load_extension (‘sqlite3-regex.so’)"
Find more posts tagged with
Clovertech
Comments
John Mercogliano
Hi Rick,
I found I needed to do this command. "db enable_load_extension 1" before calling the load extension. Hope this works for you.
RICK L. PRITCHETT
If on Linux and using "load sqlite3-regex.so" do we still need to enable the load option?
John Mercogliano
Not that I found. You have the ability to create a .sqliterc in the users home directory, I added
.load "sqlite3-regex.so"
To the file so its there when I need it from the command line.
RICK L. PRITCHETT
Can you share the contents of that file?
RICK L. PRITCHETT
Would the sqliterc be used by a tcl script?
John Mercogliano
No, only for the unix command line tool. You will still need to do enable load extension to use regexp in tcl.
As far as the rc file, that one line I listed above is the only statement in the file.
Mike Grieger
fwiw, in tcl, we use the following to enable regexp within tcl proc:
DBCMD function regexp regexp