First attempt to support 64-bit ints

This commit is contained in:
Alexey Romanov
2010-11-09 16:49:19 +03:00
parent 71ab94ba7c
commit 4864e114e8
3 changed files with 21 additions and 3 deletions

View File

@@ -133,6 +133,13 @@ nonexistent_table_info_test() ->
?assertEqual(table_does_not_exist, sqlite3:table_info(ct, nonexistent)),
sqlite3:close(ct).
large_number_test() ->
sqlite3:open(ct),
N1 = 4294967295,
N2 = (N1 + 1) div 2,
Query1 = io_lib:format("select ~p, ~p", [N1, N2]),
?assertEqual([{N1, N2}], rows(sqlite3:sql_exec(ct, Query1))).
% create, read, update, delete
%%====================================================================
%% Internal functions