Define the right-hand input of AT TIME ZONE as a full a_expr instead of
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 23 Apr 2005 17:22:16 +0000 (17:22 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 23 Apr 2005 17:22:16 +0000 (17:22 +0000)
commitc7e89d51de970f09a652377e57adba2ca0278a55
treed7ba2457858264def4b326b70aa55b40a8118320
parentdf48f64370857f3415b5381b33360e6fba92ab2b
Define the right-hand input of AT TIME ZONE as a full a_expr instead of
c_expr.  Perhaps the restriction was once needed to avoid bison errors,
but it seems to work just fine now --- and even generates a slightly
smaller state machine.  This change allows examples like
SELECT '13:45'::timetz AT TIME ZONE '-07:00'::interval;
to work without parentheses around the right-hand input.
src/backend/parser/gram.y