aboutsummaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2016-09-23 14:22:07 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2016-09-23 14:22:17 -0400
commit0a2b2ea5654a782e572f70dd81f2de80c0ca6bc6 (patch)
treec049bda2f6b04c4dba4fe8942e71ff1562773ca8 /doc/src
parent96e16d73918f57ba8dd45d7708092d6220263bfc (diff)
downloadpostgresql-0a2b2ea5654a782e572f70dd81f2de80c0ca6bc6.tar.gz
postgresql-0a2b2ea5654a782e572f70dd81f2de80c0ca6bc6.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>
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/func.sgml4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
index 7a44a03fb63..1355ecf728d 100644
--- a/doc/src/sgml/func.sgml
+++ b/doc/src/sgml/func.sgml
@@ -8037,12 +8037,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>