Fixed type sql_non_query_result() to include {rowid, integer()} on INSERT

This commit is contained in:
Alexey Romanov
2010-11-26 17:57:55 +03:00
parent b46ba9f35d
commit e325ba0c77
2 changed files with 2 additions and 2 deletions

View File

@@ -23,5 +23,5 @@
-type(sql_value() :: number() | ?NULL_ATOM | iodata() | {blob, binary()}).
-type(sqlite_error() :: {error, integer(), string()}).
-type(sql_non_query_result() :: ok | sqlite_error()).
-type(sql_non_query_result() :: ok | sqlite_error() | {rowid, integer()}).
-type(sql_result() :: sql_non_query_result() | [{columns, [string()]} | {rows, [tuple()]}]).

View File

@@ -809,7 +809,7 @@ build_primary_key_constraint(Tail, Acc) ->
%% (http://www.sqlite.org/c3ref/c_busy_recovery.html) and a string containing
%% English-language text that describes the error.
%% @end
%% @type sql_non_query_result() = ok | sqlite_error().
%% @type sql_non_query_result() = ok | sqlite_error() | {rowid, integer()}.
%% The result returned by functions which call the database but don't return
%% any records.
%% @end