From bc465a6a4ae3fbbf86dd788e3a299f7b8f3c1d10 Mon Sep 17 00:00:00 2001 From: David Hull Date: Sat, 2 Jun 2018 00:39:21 +0000 Subject: [PATCH] Fix pgapp:equery/3 spec to allow {error, timeout}. --- src/pgapp.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pgapp.erl b/src/pgapp.erl index 04234e0..9baf912 100644 --- a/src/pgapp.erl +++ b/src/pgapp.erl @@ -38,7 +38,7 @@ equery(Sql, Params) -> -spec equery(Sql :: epgsql:sql_query(), Params :: list(epgsql:bind_param()), Timeout :: atom() | integer()) - -> epgsql:reply(epgsql:equery_row()); + -> epgsql:reply(epgsql:equery_row()) | {error, Reason :: any()}; (PoolName :: atom(), Sql::epgsql:sql_query(), Params :: list(epgsql:bind_param()))