Browse Source

execute/3 might also return {error, query_error()}

Sergey Urbanovich 11 years ago
parent
commit
67dcf6aad3
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/pgsql.erl

+ 2 - 1
src/pgsql.erl

@@ -156,7 +156,8 @@ execute(C, S, N) ->
                                                                               when
       Reply :: {ok | partial, [equery_row()]}
              | {ok, non_neg_integer()}
-             | {ok, non_neg_integer(), [equery_row()]}.
+             | {ok, non_neg_integer(), [equery_row()]}
+             | {error, query_error()}.
 execute(C, S, PortalName, N) ->
     gen_server:call(C, {execute, S, PortalName, N}, infinity).