From 94197e3dc96d4369bdb6ebfe788e1d9b85adb4c9 Mon Sep 17 00:00:00 2001 From: ruslandoga Date: Mon, 14 Oct 2024 20:21:32 +0700 Subject: [PATCH] Update c_src/sqlite3_nif.c Co-authored-by: Matthew Johnston --- c_src/sqlite3_nif.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/c_src/sqlite3_nif.c b/c_src/sqlite3_nif.c index b3e9c0b..bd1cee9 100644 --- a/c_src/sqlite3_nif.c +++ b/c_src/sqlite3_nif.c @@ -738,8 +738,9 @@ exqlite_insert_all(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]) switch (types_array[i - 1]) { case SQLITE_INTEGER: { ErlNifSInt64 i64; - if (!enif_get_int64(env, param, &i64)) + if (!enif_get_int64(env, param, &i64)) { return raise_badarg(env, param); + } rc = sqlite3_bind_int64(statement->statement, i, i64); break;