diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2011-05-04 15:02:34 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2011-05-04 15:02:34 -0400 |
commit | 671322751add80f3368cd9ef17134fb9f73cf747 (patch) | |
tree | 0b3af76cd567e7bd688bbcf22326810434b194f4 | |
parent | 7f1f1bfdbb199a003b9bef5dc946eb2c1c38e4c2 (diff) | |
download | postgresql-671322751add80f3368cd9ef17134fb9f73cf747.tar.gz postgresql-671322751add80f3368cd9ef17134fb9f73cf747.zip |
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".
-rw-r--r-- | doc/src/sgml/syntax.sgml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/src/sgml/syntax.sgml b/doc/src/sgml/syntax.sgml index 40a87aabc74..f6c4a4defa1 100644 --- a/doc/src/sgml/syntax.sgml +++ b/doc/src/sgml/syntax.sgml @@ -972,7 +972,7 @@ CAST ( '<replaceable>string</replaceable>' AS <replaceable>type</replaceable> ) </sect2> <sect2 id="sql-precedence"> - <title>Lexical Precedence</title> + <title>Operator Precedence</title> <indexterm zone="sql-precedence"> <primary>operator</primary> @@ -1039,9 +1039,9 @@ SELECT (5 !) - 6; </row> <row> - <entry><token>-</token></entry> + <entry><token>+</token> <token>-</token></entry> <entry>right</entry> - <entry>unary minus</entry> + <entry>unary plus, unary minus</entry> </row> <row> @@ -1065,7 +1065,7 @@ SELECT (5 !) - 6; <row> <entry><token>IS</token></entry> <entry></entry> - <entry><literal>IS TRUE</>, <literal>IS FALSE</>, <literal>IS UNKNOWN</>, <literal>IS NULL</></entry> + <entry><literal>IS TRUE</>, <literal>IS FALSE</>, <literal>IS NULL</>, etc</entry> </row> <row> |