Browse Source

no PortalName inside batch

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

+ 3 - 3
src/pgsql_sock.erl

@@ -186,16 +186,16 @@ command({execute_batch, Batch}, State) ->
     #state{mod = Mod, sock = Sock} = State,
     BindExecute =
         lists:map(
-          fun({Statement, PortalName, Parameters}) ->
+          fun({Statement, Parameters}) ->
                   #statement{name = StatementName,
                              columns = Columns,
                              types = Types} = Statement,
                   Typed_Parameters = lists:zip(Types, Parameters),
                   Bin1 = pgsql_wire:encode_parameters(Typed_Parameters),
                   Bin2 = pgsql_wire:encode_formats(Columns),
-                  [pgsql_wire:encode($B, [PortalName, 0, StatementName, 0,
+                  [pgsql_wire:encode($B, ["", 0, StatementName, 0,
                                           Bin1, Bin2]),
-                   pgsql_wire:encode($E, [PortalName, 0, <<0:?int32>>])]
+                   pgsql_wire:encode($E, ["", 0, <<0:?int32>>])]
           end,
           Batch),
     Sync = pgsql_wire:encode($S, []),