mirror of
https://github.com/postgres/postgres.git
synced 2025-06-30 21:42:05 +03:00
Doc: list AT TIME ZONE and COLLATE in operator precedence table.
These constructs have precedence, but we forgot to list them. In HEAD, mention AT LOCAL as well as AT TIME ZONE. Per gripe from Shay Rojansky. Discussion: https://postgr.es/m/CADT4RqBPdbsZW7HS1jJP319TMRHs1hzUiP=iRJYR6UqgHCrgNQ@mail.gmail.com
This commit is contained in:
@ -1065,6 +1065,18 @@ CAST ( '<replaceable>string</replaceable>' AS <replaceable>type</replaceable> )
|
|||||||
<entry>unary plus, unary minus</entry>
|
<entry>unary plus, unary minus</entry>
|
||||||
</row>
|
</row>
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<entry><token>COLLATE</token></entry>
|
||||||
|
<entry>left</entry>
|
||||||
|
<entry>collation selection</entry>
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<entry><token>AT</token></entry>
|
||||||
|
<entry>left</entry>
|
||||||
|
<entry><literal>AT TIME ZONE</literal>, <literal>AT LOCAL</literal></entry>
|
||||||
|
</row>
|
||||||
|
|
||||||
<row>
|
<row>
|
||||||
<entry><token>^</token></entry>
|
<entry><token>^</token></entry>
|
||||||
<entry>left</entry>
|
<entry>left</entry>
|
||||||
|
@ -858,7 +858,7 @@ static Node *makeRecursiveViewSelect(char *relname, List *aliases, Node *query);
|
|||||||
%left '*' '/' '%'
|
%left '*' '/' '%'
|
||||||
%left '^'
|
%left '^'
|
||||||
/* Unary Operators */
|
/* Unary Operators */
|
||||||
%left AT /* sets precedence for AT TIME ZONE */
|
%left AT /* sets precedence for AT TIME ZONE, AT LOCAL */
|
||||||
%left COLLATE
|
%left COLLATE
|
||||||
%right UMINUS
|
%right UMINUS
|
||||||
%left '[' ']'
|
%left '[' ']'
|
||||||
|
Reference in New Issue
Block a user