Skip to content

[BUG] Complete every statement in a simple-query message #22

Open

Description

@jeffreyaven

StackQL tracking: stackql/stackql#396
Priority: HIGH
Effort: LOW

In v0.1.2-beta02, the simple-query handler returns ReadyForQuery inside the statement loop after the first result.

Acceptance:

  • Execute all statements in one simple-query message in order.
  • Emit per-statement results and the final ReadyForQuery at the correct boundary.
  • Stop remaining statements after an error and preserve protocol synchronization.
  • Cover empty statements, mixed result/no-result commands and cancellation.
  • Preserve extended-query behavior and verify the connection's next request.

Source: command.go at v0.1.2-beta02.
Release the fix for StackQL to consume, then verify a multi-statement psql -c regression.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions