Browse Source

empty query result type

Anton Lebedevich 13 years ago
parent
commit
0172407ed3
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/pgsql_sock.erl

+ 3 - 3
src/pgsql_sock.erl

@@ -477,12 +477,12 @@ on_message({$C, Bin}, State) ->
 
 
 %% EmptyQueryResponse
 %% EmptyQueryResponse
 on_message({$I, _Bin}, State) ->
 on_message({$I, _Bin}, State) ->
-    %% TODO check expected result format
     State2 = case command_tag(State) of
     State2 = case command_tag(State) of
                  execute ->
                  execute ->
-                     reply(State, empty);
+                     reply(State, {ok, [], []});
                  C when C == squery; C == equery ->
                  C when C == squery; C == equery ->
-                     State#state{results = [empty | State#state.results]}
+                     State#state{
+                       results = [{ok, [], []} | State#state.results]}
              end,
              end,
     {noreply, State2};
     {noreply, State2};