Просмотр исходного кода

squery/3 for batch query returns list of results

Sergey Urbanovich 11 лет назад
Родитель
Сommit
b045e660b3
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      src/pgsql.erl

+ 2 - 1
src/pgsql.erl

@@ -90,7 +90,8 @@ get_parameter(C, Name) ->
     pgsql_sock:get_parameter(C, Name).
 
 -spec squery(connection(), string() | iodata()) ->
-                    ok_reply(squery_row()) | {error, query_error()}.
+                    ok_reply(squery_row()) | {error, query_error()} |
+                    [ok_reply(squery_row()) | {error, query_error()}].
 squery(C, Sql) ->
     gen_server:call(C, {squery, Sql}, infinity).