First implementation for enable_load_extension

TODO: Wait for the reply of the port driver
This commit is contained in:
booo
2012-07-24 16:14:33 +02:00
parent 08955394ab
commit 20298aad29
4 changed files with 33 additions and 2 deletions

View File

@@ -50,7 +50,8 @@ all_test_() ->
?FuncTest(large_number),
?FuncTest(unicode),
?FuncTest(acc_string_encoding),
?FuncTest(large_offset)]}.
?FuncTest(large_offset),
?FuncTest(enable_load_extension)]}.
open_db() ->
sqlite3:open(ct, [in_memory]).
@@ -303,6 +304,9 @@ large_offset() ->
[{columns, ["id"]}, {rows, []}, {error, 20, "datatype mismatch"}],
sqlite3:sql_exec(ct, "select * from large_offset limit 1 offset 9223372036854775808")).
enable_load_extension() ->
?assertEqual(ok, sqlite3:enable_load_extension(ct, 1)).
% create, read, update, delete
%%====================================================================
%% Internal functions