Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 6713227

Browse files
committed
Include unary plus in the Operator Precedence table.
Per gripe from Grzegorz Szpetkowski. Also, change the subsection heading from "Lexical Precedence" (which is a contradiction in terms) to "Operator Precedence".
1 parent 7f1f1bf commit 6713227

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/src/sgml/syntax.sgml

+4-4
Original file line numberDiff line numberDiff line change
@@ -972,7 +972,7 @@ CAST ( '<replaceable>string</replaceable>' AS <replaceable>type</replaceable> )
972972
</sect2>
973973

974974
<sect2 id="sql-precedence">
975-
<title>Lexical Precedence</title>
975+
<title>Operator Precedence</title>
976976

977977
<indexterm zone="sql-precedence">
978978
<primary>operator</primary>
@@ -1039,9 +1039,9 @@ SELECT (5 !) - 6;
10391039
</row>
10401040

10411041
<row>
1042-
<entry><token>-</token></entry>
1042+
<entry><token>+</token> <token>-</token></entry>
10431043
<entry>right</entry>
1044-
<entry>unary minus</entry>
1044+
<entry>unary plus, unary minus</entry>
10451045
</row>
10461046

10471047
<row>
@@ -1065,7 +1065,7 @@ SELECT (5 !) - 6;
10651065
<row>
10661066
<entry><token>IS</token></entry>
10671067
<entry></entry>
1068-
<entry><literal>IS TRUE</>, <literal>IS FALSE</>, <literal>IS UNKNOWN</>, <literal>IS NULL</></entry>
1068+
<entry><literal>IS TRUE</>, <literal>IS FALSE</>, <literal>IS NULL</>, etc</entry>
10691069
</row>
10701070

10711071
<row>

0 commit comments

Comments
 (0)