Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REGEXP support for SQLite #991

Open
LNKLEO opened this issue Sep 15, 2024 · 2 comments
Open

REGEXP support for SQLite #991

LNKLEO opened this issue Sep 15, 2024 · 2 comments

Comments

@LNKLEO
Copy link

LNKLEO commented Sep 15, 2024

Just using a "SELECT [COLUMES] FROM [TABLE] WHERE [COLUME] REGEXP [EXPR]" statement

You will get an error "no such function REGEXP"

image

Database engine: SQLite

Visual Studio or SSMS version: VS 2022 + CEToolbox 4,8.776

@ErikEJ
Copy link
Owner

ErikEJ commented Sep 15, 2024

@LNKLEO Do you know in which sqlite version regexp was added?

@LNKLEO
Copy link
Author

LNKLEO commented Sep 15, 2024

REGEXP was added in a very early version I think, and I noticed you using System.Data.SQLite as SQLite implement. Then I found this.

https://stackoverflow.com/questions/20622613/sqlite-in-c-sharp-with-regexp
https://stackoverflow.com/questions/172735/create-use-user-defined-functions-in-system-data-sqlite

It looks you need to create a REGEXP to archive this with System.Data.SQLite.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants