-
-
Notifications
You must be signed in to change notification settings - Fork 117
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
Problems with extensions in sqlite3.dll and sqlite-jdbc #25
Comments
bug.zip |
Thanks for the report! I have confirmed the problem with the stats extension, currently investigating. Will look into others too. |
json1 extensionThis extension is already compiled into stats extensionFor some reason, the authors of I allowed function redefinition for unicodeThis extension won't load via
There is no workaround, other than using C API or SQLite CLI. |
I have an idea Could you, please, make a twin extension, let's say: nunicode Then one could use this extension in apps like heidisql, where it is impossible to call C-API... 🙏 |
That's a great idea! I've added |
There is something wrong with some extensions...
They work in SQLite3 shell, but won't load or work correctly in sqlite3.dll and sqlite-jdbc (java sqlite driver).
test.zip
I have attached a java example.
wget https://github.com/xerial/sqlite-jdbc/releases/download/3.36.0.3/sqlite-jdbc-3.36.0.3.jar
wget https://jsoup.org/packages/jsoup-1.14.3.jar
javac -encoding utf8 -cp .:sqlite-jdbc-3.36.0.3.jar:jsoup-1.14.3.jar Extension.java
; with extensions downloading
java -cp .:sqlite-jdbc-3.36.0.3.jar:jsoup-1.14.3.jar Extension
; without extensions downloading
java -cp .:sqlite-jdbc-3.36.0.3.jar Extension
If you use Mac, you probably have to edit Extension.java and change
String ext = (File.separatorChar == '\') ? ".dll" : ".so";
to
String ext = ".dylib";
On my computer:
json1, stats can't be loaded
unicode can be loaded*, but doesn't work at all
The text was updated successfully, but these errors were encountered: