Added a way to enable exception loading
This commit is contained in:
@@ -258,7 +258,7 @@ static int enable_load_extension(sqlite3_drv_t* drv, char *buf, int len) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#else
|
#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;
|
return -1;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define _CRT_SECURE_NO_WARNINGS // secure functions aren't cross-platform
|
#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 <erl_driver.h>
|
#include <erl_driver.h>
|
||||||
#include <erl_interface.h>
|
#include <erl_interface.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user