Skip to content

Commit

Permalink
Deparser: Add additional test case for DEFAULT in ALTER TABLE
Browse files Browse the repository at this point in the history
Co-authored-by: Tyler Gannon <[email protected]>
  • Loading branch information
lfittl and tylergannon authored Dec 18, 2024
1 parent 38818fa commit fff67c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/deparse_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,7 @@ const char* tests[] = {
"CREATE TABLE my_table (created_at timestamptz NOT NULL DEFAULT (now() AT TIME ZONE 'UTC'))",
"CREATE TABLE my_table (created_at timestamptz NOT NULL DEFAULT (now() AT LOCAL))",
"CREATE TABLE my_table (created_at timestamptz NOT NULL DEFAULT '1 hour'::interval + (current_timestamp AT TIME ZONE 'UTC'))",
"ALTER TABLE my_table ADD COLUMN created_at timestamptz NOT NULL DEFAULT '1 hour'::interval + (current_timestamp AT TIME ZONE 'UTC')",
"CREATE TABLE my_table (created_at int NOT NULL DEFAULT 1 + 2)"
};

Expand Down

0 comments on commit fff67c2

Please sign in to comment.