Browse Source

Merge pull request #87 from aherranz/minor_doc_fixing

Fixing error in comments, added delete statement to the
David N. Welton 9 years ago
parent
commit
34667844b2
2 changed files with 6 additions and 6 deletions
  1. 3 3
      README.md
  2. 3 3
      src/epgsql.erl

+ 3 - 3
README.md

@@ -124,9 +124,9 @@ Asynchronous connect example (applies to **epgsqli** too):
 }).
 }).
 
 
 -type ok_reply(RowType) ::
 -type ok_reply(RowType) ::
-    {ok, Count :: non_neg_integer()} |                                                            % select
-    {ok, ColumnsDescription :: [#column{}], RowsValues :: [RowType]} |                            % update/insert
-    {ok, Count :: non_neg_integer(), ColumnsDescription :: [#column{}], RowsValues :: [RowType]}. % update/insert + returning
+    {ok, ColumnsDescription :: [#column{}], RowsValues :: [RowType]} |                            % select
+    {ok, Count :: non_neg_integer()} |                                                            % update/insert/delete
+    {ok, Count :: non_neg_integer(), ColumnsDescription :: [#column{}], RowsValues :: [RowType]}. % update/insert/delete + returning
 -type error_reply() :: {error, query_error()}.
 -type error_reply() :: {error, query_error()}.
 -type reply(RowType) :: ok_reply() | error_reply().
 -type reply(RowType) :: ok_reply() | error_reply().
 
 

+ 3 - 3
src/epgsql.erl

@@ -58,9 +58,9 @@
 -type squery_row() :: {binary()}.
 -type squery_row() :: {binary()}.
 -type equery_row() :: {bind_param()}.
 -type equery_row() :: {bind_param()}.
 -type ok_reply(RowType) ::
 -type ok_reply(RowType) ::
-    {ok, Count :: non_neg_integer()} |                                                            % select
-    {ok, ColumnsDescription :: [#column{}], RowsValues :: [RowType]} |                            % update/insert
-    {ok, Count :: non_neg_integer(), ColumnsDescription :: [#column{}], RowsValues :: [RowType]}. % update/insert + returning
+    {ok, ColumnsDescription :: [#column{}], RowsValues :: [RowType]} |                            % select
+    {ok, Count :: non_neg_integer()} |                                                            % update/insert/delete
+    {ok, Count :: non_neg_integer(), ColumnsDescription :: [#column{}], RowsValues :: [RowType]}. % update/insert/delete + returning
 -type error_reply() :: {error, query_error()}.
 -type error_reply() :: {error, query_error()}.
 -type reply(RowType) :: ok_reply(RowType) | error_reply().
 -type reply(RowType) :: ok_reply(RowType) | error_reply().