Skip to content

Commit

Permalink
Update c_src/sqlite3_nif.c
Browse files Browse the repository at this point in the history
Co-authored-by: Matthew Johnston <warmwaffles@gmail.com>
  • Loading branch information
ruslandoga and warmwaffles authored Oct 14, 2024
1 parent 59a70b2 commit 94197e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion c_src/sqlite3_nif.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 94197e3

Please sign in to comment.