Open shah opened 1 year ago
There's a bug in the current implementation of sqlite-loadable-rs
, where calling sqlite3_ulid_init()
by hand will cause a segfault. Instead, you can use sqlite3_auto_extension
which should work, but means every database will pre-load sqlite-ulid
functions.
Though I did find a fix for that bug, so in the next version of sqlite-ulid
, your code should work. But you'll need to do the auto_extension workaround for now!
Example: https://github.com/asg017/sqlite-ulid/blob/main/examples/c/demo.c
This is a great extension @asg017! I'm trying to compile and statically link this extension in my own C code.
I used your
make static-release
and got the.a
file and then tried to compile it with this C function and it builds my binary but when I try to calludi_sqlite_init_extensions
as part of the SQLite execution I get a segfault. Is there anything special I need to do on the Rust code side?