Anton Lebedevich 12 years ago
parent
commit
3d08031be0
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/pgsql_sock.erl

+ 1 - 0
src/pgsql_sock.erl

@@ -597,6 +597,7 @@ on_message({$I, _Bin}, State) ->
 %% ReadyForQuery
 %% ReadyForQuery
 on_message({$Z, <<Status:8>>}, State) ->
 on_message({$Z, <<Status:8>>}, State) ->
     State2 = case command_tag(State) of
     State2 = case command_tag(State) of
+                 %% TODO don't unwrap single element list for execute_batch
                  C when C == squery; C == execute_batch ->
                  C when C == squery; C == execute_batch ->
                      case State#state.results of
                      case State#state.results of
                          [Result] ->
                          [Result] ->