Anton Lebedevich 13 лет назад
Родитель
Сommit
71f757572a
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/pgsql_sock.erl

+ 2 - 2
src/pgsql_sock.erl

@@ -475,7 +475,7 @@ on_message({$C, Bin}, State) ->
     State2 = case {Command, Complete} of
                  {execute, {_, Count}} ->
                      reply(State, {ok, Count, Rows});
-                 {execute, {_}} ->
+                 {execute, _} ->
                      reply(State, {ok, Rows});
                  {C, {_, Count}} when C == squery; C == equery ->
                      case Rows of
@@ -485,7 +485,7 @@ on_message({$C, Bin}, State) ->
                              add_result(State,
                                         {ok, Count, get_columns(State), Rows})
                      end;
-                 {C, {_}} when C == squery; C == equery ->
+                 {C, _} when C == squery; C == equery ->
                      add_result(State, {ok, get_columns(State), Rows})
              end,
     {noreply, State2};