Merge pull request #17 from jazzyb/erlang18

compiles for OTP 18.0
This commit is contained in:
Maas-Maarten Zeeman
2015-06-30 21:44:40 +02:00

View File

@@ -296,11 +296,11 @@ bind(Stmt, Args, Timeout) ->
%% @doc Return the column names of the prepared statement.
%%
-spec column_names(statement()) -> tuple(atom()).
-spec column_names(statement()) -> {atom()}.
column_names(Stmt) ->
column_names(Stmt, ?DEFAULT_TIMEOUT).
-spec column_names(statement(), timeout()) -> tuple(atom()).
-spec column_names(statement(), timeout()) -> {atom()}.
column_names(Stmt, Timeout) ->
Ref = make_ref(),
ok = esqlite3_nif:column_names(Stmt, Ref, self()),
@@ -308,11 +308,11 @@ column_names(Stmt, Timeout) ->
%% @doc Return the column types of the prepared statement.
%%
-spec column_types(statement()) -> tuple(atom()).
-spec column_types(statement()) -> {atom()}.
column_types(Stmt) ->
column_types(Stmt, ?DEFAULT_TIMEOUT).
-spec column_types(statement(), timeout()) -> tuple(atom()).
-spec column_types(statement(), timeout()) -> {atom()}.
column_types(Stmt, Timeout) ->
Ref = make_ref(),
ok = esqlite3_nif:column_types(Stmt, Ref, self()),