diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2016-09-23 14:22:07 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2016-09-23 14:22:13 -0400 |
commit | 94e4cac251927e3ce1f66b3d96a03f1f7c3ba3e7 (patch) | |
tree | 6eaffcea4d150b7b49b487adf32754bcbbe13de3 | |
parent | 7e02476f337990e68c80b7a1395dcc6af111c034 (diff) | |
download | postgresql-94e4cac251927e3ce1f66b3d96a03f1f7c3ba3e7.tar.gz postgresql-94e4cac251927e3ce1f66b3d96a03f1f7c3ba3e7.zip |
Doc: fix examples of # operators so they actually work.
These worked as-is until around 7.0, but fail in newer versions because
there are more operators named "#". Besides it's a bit inconsistent that
only two of the examples on this page lack type names on their constants.
Report: <20160923081530.1517.75670@wrigleys.postgresql.org>
-rw-r--r-- | doc/src/sgml/func.sgml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index 7e72f88d3ed..dabcd3e7de0 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -8302,12 +8302,12 @@ CREATE TYPE rainbow AS ENUM ('red', 'orange', 'yellow', 'green', 'blue', 'purple <row> <entry> <literal>#</literal> </entry> <entry>Point or box of intersection</entry> - <entry><literal>'((1,-1),(-1,1))' # '((1,1),(-1,-1))'</literal></entry> + <entry><literal>box '((1,-1),(-1,1))' # box '((1,1),(-2,-2))'</literal></entry> </row> <row> <entry> <literal>#</literal> </entry> <entry>Number of points in path or polygon</entry> - <entry><literal># '((1,0),(0,1),(-1,0))'</literal></entry> + <entry><literal># path '((1,0),(0,1),(-1,0))'</literal></entry> </row> <row> <entry> <literal>@-@</literal> </entry> |