Skip to content

Prepared statements still completely broken #665

@booyou

Description

@booyou

In a recent commit, prepared statements were "fixed" by considering them prepared when CommandComplete is received.

However, this is still wrong, because you should do this when ParseComplete is received rather than CommandComplete.

Your code is currently completely broken in cases where statement preparation succeeds (sending a ParseComplete and creating the statement), but statement execution fails, which results in CommandComplete not being sent.

This was posted as issue #664, but the maintainer decided to censor it for some reason. It is really unfortunate that GitHub allows maintainers to abuse their power like this, and I wonder if there are any other subtle issues being censored.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions