Skip to content

sql: SET does not properly rollback in a transaction #69396

@otan

Description

@otan

Consider the following transaction:

SET TIME ZONE +2;
BEGIN;
SET TIME ZONE +3;
ROLLBACK
SHOW TIME ZONE

If we apply a ROLLBACK, Postgres returns +2, however, CockroachDB returns +3.

This is a backwards incompatible change, not sure what the answer here is.

Jira issue: CRDB-9572

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-sql-pgcompatSemantic compatibility with PostgreSQLC-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.T-sql-foundationsSQL Foundations Team (formerly SQL Schema + SQL Sessions)docs-donedocs-known-limitation

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions