• Tom Lane's avatar
    When in transaction-aborted state, reject Bind message for portals containing · da4e00bf
    Tom Lane authored
    anything but transaction-exiting commands (ROLLBACK etc).  We already rejected
    Parse and Execute in such cases, so there seems little point in allowing Bind.
    This prevents at least an Assert failure, and probably worse things, since
    there's a lot of infrastructure that doesn't work when not in a live
    transaction.  We can also simplify the Bind logic a bit by rejecting messages
    with a nonzero number of parameters, instead of the former kluge to silently
    substitute NULL for each parameter.  Per bug #2033 from Joel Stevenson.
    da4e00bf
postgres.c 92.3 KB