Open yuzefovich opened 1 year ago
I think we should disallow PREPARE
with a SET
statement entirely. Postgres does not support it:
marcus=# PREPARE p AS SET TRACING = $1;
ERROR: 42601: syntax error at or near "SET"
LINE 1: PREPARE p AS SET TRACING = $1;
results in
This is because "observer statements" don't go through the execute engine.
We probably should just disallow making prepared "observer" statements to make the error nicer.
Jira issue: CRDB-25468