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 functions flagged as not deterministic #46

Closed
RDelg opened this issue Aug 30, 2022 · 1 comment
Closed

Regexp functions flagged as not deterministic #46

RDelg opened this issue Aug 30, 2022 · 1 comment

Comments

@RDelg
Copy link

RDelg commented Aug 30, 2022

Hello,
I am wondering why the regexp functions are not flagged with SQLITE_INNOCUOUS and SQLITE_DETERMINISTIC.
It is giving me an error when trying to use regexp_replace in a generated column.

sqlite> .load ./re
sqlite> create table test as select "name" as name;
sqlite> alter table test add column new_name generated always as (regexp_replace(name,'.','N'));
Runtime error: error in table test after add column: non-deterministic functions prohibited in generated columns
@nalgeon
Copy link
Owner

nalgeon commented Aug 31, 2022

Marked functions as deterministic in 0.15.3.

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