Skip to content

Commit

Permalink
fetch all rows, don't want to deal with PortalSuspended inside batch
Browse files Browse the repository at this point in the history
  • Loading branch information
mabrek committed Feb 11, 2012
1 parent 5142cd7 commit 1b35539
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pgsql_sock.erl
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ command({execute_batch, Batch}, State) ->
#state{mod = Mod, sock = Sock} = State,
BindExecute =
lists:map(
fun({Statement, PortalName, Parameters, MaxRows}) ->
fun({Statement, PortalName, Parameters}) ->
#statement{name = StatementName,
columns = Columns,
types = Types} = Statement,
Expand All @@ -195,7 +195,7 @@ command({execute_batch, Batch}, State) ->
Bin2 = pgsql_wire:encode_formats(Columns),
[pgsql_wire:encode($B, [PortalName, 0, StatementName, 0,
Bin1, Bin2]),
pgsql_wire:encode($E, [PortalName, 0, <<MaxRows:?int32>>])]
pgsql_wire:encode($E, [PortalName, 0, <<0:?int32>>])]
end,
Batch),
Sync = pgsql_wire:encode($S, []),
Expand Down

0 comments on commit 1b35539

Please sign in to comment.