Skip to content

sql: support prepared statements with unknown types #41558

@asubiotto

Description

@asubiotto

The lib/pq test suite is failing with the following:
Postgres:

asubiotto=# prepare q as values ($1,$2,$3);
PREPARE

Cockroach:

root@:26257/defaultdb> prepare q as values($1,$2,$3);
pq: could not determine data type of placeholder $1

Jira issue: CRDB-5435

Epic CRDB-60813

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-prepared-stmtsHaving to do with prepared statements.A-sql-pgcompatSemantic compatibility with PostgreSQLA-sql-typingSQLtype inference, typing rules, type compatibility.A-tools-djangoC-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)T-sql-foundationsSQL Foundations Team (formerly SQL Schema + SQL Sessions)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions