Browse Source

add columns to equery notices

Anton Lebedevich 13 years ago
parent
commit
b39a43611d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/pgsql_sock.erl

+ 2 - 1
src/pgsql_sock.erl

@@ -468,7 +468,8 @@ on_message({$n, <<>>}, State) ->
 on_message({$2, <<>>}, State) ->
     State2 = case command_tag(State) of
                  equery ->
-                     State;
+                     %% TODO send Describe as a part of equery, needs text format support
+                     notify(State, {columns, get_columns(State)});
                  bind ->
                      finish(State, ok)
              end,