Skip to content

Commit f5a3727

Browse files
committed
Fixed enable_load_extension return value bug
1 parent 02400d7 commit f5a3727

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/META

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# OASIS_START
2-
# DO NOT EDIT (digest: 28225b4e4e88e96297931e828c771280)
3-
version = "4.1.2"
2+
# DO NOT EDIT (digest: 496b9c1c4aed472436cd96395b22e2a2)
3+
version = "4.1.3"
44
description = "sqlite3-ocaml - SQLite3 bindings"
55
archive(byte) = "sqlite3.cma"
66
archive(byte, plugin) = "sqlite3.cma"

src/sqlite3_stubs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ CAMLprim value caml_sqlite3_enable_load_extension(value v_db, value v_onoff)
470470
int ret;
471471
db_wrap *dbw = Sqlite3_val(v_db);
472472
ret = sqlite3_enable_load_extension(dbw->db, Bool_val(v_onoff));
473-
return Val_bool(ret);
473+
return Val_bool(ret == SQLITE_OK);
474474
}
475475
#else
476476
CAMLprim value caml_sqlite3_enable_load_extension(

0 commit comments

Comments
 (0)