|
4 | 4 |
|
5 | 5 | // Elixir workaround for . in module names |
6 | 6 | #ifdef STATIC_ERLANG_NIF |
7 | | -#define STATIC_ERLANG_NIF_LIBNAME sqlite3_nif |
| 7 | + #define STATIC_ERLANG_NIF_LIBNAME sqlite3_nif |
8 | 8 | #endif |
9 | 9 |
|
10 | 10 | #include <erl_nif.h> |
|
13 | 13 | #define MAX_ATOM_LENGTH 255 |
14 | 14 | #define MAX_PATHNAME 512 |
15 | 15 |
|
16 | | -static ErlNifResourceType* connection_type = NULL; |
17 | | -static ErlNifResourceType* statement_type = NULL; |
| 16 | +static ErlNifResourceType* connection_type = NULL; |
| 17 | +static ErlNifResourceType* statement_type = NULL; |
18 | 18 | static sqlite3_mem_methods default_alloc_methods = {0}; |
19 | 19 |
|
20 | 20 | typedef struct connection |
@@ -1027,10 +1027,10 @@ update_callback(void* arg, int sqlite_operation_type, char const* sqlite_databas |
1027 | 1027 | default: |
1028 | 1028 | return; |
1029 | 1029 | } |
1030 | | - ERL_NIF_TERM rowid = enif_make_int64(msg_env, sqlite_rowid); |
| 1030 | + ERL_NIF_TERM rowid = enif_make_int64(msg_env, sqlite_rowid); |
1031 | 1031 | ERL_NIF_TERM database = make_binary(msg_env, sqlite_database, strlen(sqlite_database)); |
1032 | | - ERL_NIF_TERM table = make_binary(msg_env, sqlite_table, strlen(sqlite_table)); |
1033 | | - ERL_NIF_TERM msg = enif_make_tuple4(msg_env, change_type, database, table, rowid); |
| 1032 | + ERL_NIF_TERM table = make_binary(msg_env, sqlite_table, strlen(sqlite_table)); |
| 1033 | + ERL_NIF_TERM msg = enif_make_tuple4(msg_env, change_type, database, table, rowid); |
1034 | 1034 |
|
1035 | 1035 | if (!enif_send(NULL, &conn->update_hook_pid, msg_env, msg)) { |
1036 | 1036 | sqlite3_update_hook(conn->db, NULL, NULL); |
|
0 commit comments