Skip to content

PARSE and EXECUTE sent via Parse (extended protocol) isn't handled correctly #1403

Description

@levkk

PgDog version
main

Description
We rewrite all PARSE and EXECUTE statements to simple queries when executing them on the
servers. This doesn't work if they are sent via extended protocol because client expects an extended protocol reply.

Configuration

[general]
prepared_statements = "full"

Pseudocode:

let query = sqlx::prepare("PREPARE stmt1 AS SELECT $1").await;
sqlx::execute(query).await;
let query = sqlx::prepare("EXECUTE stmt1($1)").await;
sqlx::execute(query).bind(5);

Honestly, if you're doing this, you have bigger issues, but this exchange is technically legal, so...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions