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

Uncaught Error: no such function: json_extract #237

Closed
kimown opened this issue Apr 16, 2018 · 1 comment
Closed

Uncaught Error: no such function: json_extract #237

kimown opened this issue Apr 16, 2018 · 1 comment

Comments

@kimown
Copy link

kimown commented Apr 16, 2018

I want use json1 in sql.js, I test some sql snippet in online demo

create table user (name text,phone JSON );
insert into user (name, phone) values("oz",'{"cell":"+491765", "home":"+498973"}');
select user.phone from user where user.name=='oz';
select json_extract(user.phone, '$.cell') from user;

reference

image

but throw error : Uncaught Error: no such function: json_extract, how can I enable JSON1 extension, should I change Makefile like FTS5 extension.
https://github.com/kripken/sql.js/pull/199

https://github.com/kripken/sql.js/issues/68

@lovasoa
Copy link
Member

lovasoa commented Apr 24, 2018

Yes, you should update the Makefile

@lovasoa lovasoa closed this as completed Apr 24, 2018
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