]> granicus.if.org Git - postgresql/commit
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)
commitc114e166e5eb6d09b7545863f6bee5806e927101
tree8ec17f47ce198053c389662419c3ed87e360e235
parent0975b95bc3e4cbaca3497991665fed49f1fe28fb
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