File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11<!--
2- $Header: /cvsroot/pgsql/doc/src/sgml/syntax.sgml,v 1.40 2001/02/24 18:09:51 petere Exp $
2+ $Header: /cvsroot/pgsql/doc/src/sgml/syntax.sgml,v 1.41 2001/02/25 16:05:21 petere Exp $
33-->
44
55<chapter id="sql-syntax">
@@ -905,17 +905,17 @@ sqrt(2)
905905 you will sometimes need to add parentheses when using combinations
906906 of binary and unary operators. For instance
907907<programlisting>
908- SELECT 5 ! + 6;
908+ SELECT 5 ! - 6;
909909</programlisting>
910910 will be parsed as
911911<programlisting>
912- SELECT 5 ! (+ 6);
912+ SELECT 5 ! (- 6);
913913</programlisting>
914914 because the parser has no idea -- until it is too late -- that
915915 <token>!</token> is defined as a postfix operator, not an infix one.
916916 To get the desired behavior in this case, you must write
917917<programlisting>
918- SELECT (5 !) + 6;
918+ SELECT (5 !) - 6;
919919</programlisting>
920920 This is the price one pays for extensibility.
921921 </para>
You can’t perform that action at this time.
0 commit comments