diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2025-04-29 14:40:49 +0200 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2025-04-29 14:43:35 +0200 |
commit | 913c60b067aa1a618420fd0372c4df3cf5501863 (patch) | |
tree | 5dcc8d54fa71f65b106912bbac369113625bd4d8 /doc/src | |
parent | 2260c7f6d90ecf76d3806d32890a0890688b41e8 (diff) | |
download | postgresql-913c60b067aa1a618420fd0372c4df3cf5501863.tar.gz postgresql-913c60b067aa1a618420fd0372c4df3cf5501863.zip |
doc: Small example improvement
Add a comment character before a line annotation, so that the query
can be used as presented.
Reported-by: Yaroslav Saburov <y.saburov@gmail.com>
Author: Euler Taveira <euler@eulerto.com>
Reviewed-by: Robert Treat <rob@xzilla.net>
Discussion: https://www.postgresql.org/message-id/flat/174393459040.678.17810152410419444783%40wrigleys.postgresql.org
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/query.sgml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/src/sgml/query.sgml b/doc/src/sgml/query.sgml index 59962d6e856..727a0cb185f 100644 --- a/doc/src/sgml/query.sgml +++ b/doc/src/sgml/query.sgml @@ -671,7 +671,7 @@ SELECT max(temp_lo) FROM weather; we might try: <programlisting> -SELECT city FROM weather WHERE temp_lo = max(temp_lo); <lineannotation>WRONG</lineannotation> +SELECT city FROM weather WHERE temp_lo = max(temp_lo); <lineannotation>-- WRONG</lineannotation> </programlisting> but this will not work since the aggregate |