-
Notifications
You must be signed in to change notification settings - Fork 510
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
SQLITE_ENABLE_JSON1 flag does not appear to compile sqlite3 with this option #425
Comments
Hello, can you provide more details on your setup? What OS? Aka is your project really recompiling the sqlite library or using an existing one from your distribution? I am not in front of a computer so I cannot check the feature (coming from PR #288) |
Sure, MacOS 12.16 here |
I think that's the reason, by default on Unixes CMake will detect the existing sqlite3 dynamic library installed in your system and use it |
I know documentation is far from perfect, from the readme on troubleshooting: or turn on the option( Let me know if you have any trouble with that |
looks to be on by default this is also mentioned again here perhaps something here is overriding this: cmake -DCMAKE_BUILD_TYPE=Debug -DSQLITE_ENABLE_JSON1=ON -DSQLITECPP_USE_ASAN=ON -DSQLITECPP_USE_GCOV=OFF -DSQLITECPP_BUILD_EXAMPLES=ON -DSQLITECPP_BUILD_TESTS=ON .. |
since the JSON functions and operators are built into SQLite by default, as of SQLite version 3.38.0 (2022-02-22). see issue #425 SQLITE_ENABLE_JSON1 flag does not appear to compile sqlite3 with this option
See PR #428 for the new branch I just pushed: For us with SQLiteCpp it would be since Version 3.2.0 - 2022 September 18 |
I hope this helps |
SQLiteCpp with the
SQLITE_ENABLE_JSON1
#289 doesn't appear to be working. I'm using the following query to test, which returns zero.I changed the line in
./build.sh
toAnd created a quick test in
Database_test.cpp
- which fails. for ease, you can pull it from my fork hereAny thoughts? Perhaps I'm missing something obvious here.
The text was updated successfully, but these errors were encountered: