Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
3460181c
Commit
3460181c
authored
Feb 24, 2001
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Choose a more suitable example for the operator precedence mis-parsing
example.
parent
2db9d5e5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
doc/src/sgml/syntax.sgml
doc/src/sgml/syntax.sgml
+6
-6
No files found.
doc/src/sgml/syntax.sgml
View file @
3460181c
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/syntax.sgml,v 1.
39 2001/02/10 07:08:44 tgl
Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/syntax.sgml,v 1.
40 2001/02/24 18:09:51 petere
Exp $
-->
<chapter id="sql-syntax">
...
...
@@ -905,17 +905,17 @@ sqrt(2)
you will sometimes need to add parentheses when using combinations
of binary and unary operators. For instance
<programlisting>
SELECT 5 !
~
6;
SELECT 5 !
+
6;
</programlisting>
will be parsed as
<programlisting>
SELECT 5 ! (
~
6);
SELECT 5 ! (
+
6);
</programlisting>
because the parser has no idea --
- until it's too late -
-- that
<token>!</token> is defined as a postfix operator not an infix one.
because the parser has no idea --
until it is too late
-- that
<token>!</token> is defined as a postfix operator
,
not an infix one.
To get the desired behavior in this case, you must write
<programlisting>
SELECT (5 !)
~
6;
SELECT (5 !)
+
6;
</programlisting>
This is the price one pays for extensibility.
</para>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment