diff --git a/Cargo.toml b/Cargo.toml index 6aecef2..50dcd9d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "julid-rs" -version = "1.6.1803398" +version = "1.6.18033988" authors = ["Joe Ardent "] edition = "2021" keywords = ["ulid", "library", "sqlite", "extension", "julid"] diff --git a/VERSION b/VERSION index a99a75d..ae28b93 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.61803398 +1.618033988 diff --git a/src/lib.rs b/src/lib.rs index ef6ff1d..eb24b06 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -47,12 +47,18 @@ pub mod sqlite_plugin { use super::*; pub(super) fn init_rs(db: *mut sqlite3) -> Result<()> { - let flags = FunctionFlags::UTF8 | FunctionFlags::DETERMINISTIC; + let flags = FunctionFlags::UTF8 | FunctionFlags::DETERMINISTIC | FunctionFlags::INNOCUOUS; define_scalar_function(db, "julid_new", 0, julid_new, FunctionFlags::INNOCUOUS)?; define_scalar_function(db, "julid_seconds", 1, julid_seconds, flags)?; define_scalar_function(db, "julid_counter", 1, julid_counter, flags)?; define_scalar_function(db, "julid_sortable", 1, julid_sortable, flags)?; - define_scalar_function(db, "julid_string", -1, julid_string, FunctionFlags::UTF8)?; + define_scalar_function( + db, + "julid_string", + -1, + julid_string, + FunctionFlags::UTF8 | FunctionFlags::INNOCUOUS, + )?; Ok(()) }