From b0f1aa1351eee44ea4e0c967e4a7a4889bcb54a0 Mon Sep 17 00:00:00 2001 From: Alexey Romanov Date: Mon, 25 Mar 2013 00:49:12 +0400 Subject: [PATCH] Added a way to enable exception loading --- c_src/sqlite3_drv.c | 2 +- c_src/sqlite3_drv.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/c_src/sqlite3_drv.c b/c_src/sqlite3_drv.c index e2f8aee..f1aef27 100644 --- a/c_src/sqlite3_drv.c +++ b/c_src/sqlite3_drv.c @@ -258,7 +258,7 @@ static int enable_load_extension(sqlite3_drv_t* drv, char *buf, int len) { return 0; } #else - output_error(drv, SQLITE_MISUSE, "extension loading not enabled"); + output_error(drv, SQLITE_MISUSE, "extension loading not enabled, recompile erlang-sqlite3 with ERLANG_SQLITE3_LOAD_EXTENSION defined"); return -1; #endif } diff --git a/c_src/sqlite3_drv.h b/c_src/sqlite3_drv.h index 103750e..01ddeb4 100644 --- a/c_src/sqlite3_drv.h +++ b/c_src/sqlite3_drv.h @@ -4,6 +4,7 @@ #endif #define _CRT_SECURE_NO_WARNINGS // secure functions aren't cross-platform +// #define ERLANG_SQLITE3_LOAD_EXTENSION // uncomment if you need to enable loading extensions #include #include