anchor.diff:  
   %% statement/portal functions
   
  -describe(C, Statement = #statement{name = Name}) ->
  -    Ref = pgsql_sock:describe(C, statement, Name),
  -    receive_describe(C, Ref, Statement).
  +describe(C, #statement{name = Name}) ->
  +    describe(C, statement, Name).
   
   describe(C, statement, Name) ->
       Ref = pgsql_sock:describe(C, statement, Name),
  -    receive_describe(C, Ref, #statement{name = Name});
  +    sync_on_error(C, receive_describe(C, Ref, #statement{name = Name}));
   
   describe(C, Type, Name) ->
       %% TODO unknown result format of Describe portal
  
positive.code: 
  bind(C, Statement, PortalName, Parameters) ->
      Ref = pgsql_sock:bind(C, Statement, PortalName, Parameters),
      case receive_atom(C, Ref, ok, ok) of
          ok ->
              ok;
          Error ->
              Ref2 = pgsql_sock:sync(C),
              receive_atom(C, Ref2, done, ok),
              Error
      end.
  
  %% execute
  
  
negative.code: 
  parse(C, Name, Sql, Types) ->
      Ref = pgsql_sock:parse(C, Name, Sql, Types),
      sync_on_error(C, receive_describe(C, Ref, #statement{name = Name})).
  
  %% bind
  
  