From 913c60b067aa1a618420fd0372c4df3cf5501863 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Tue, 29 Apr 2025 14:40:49 +0200 Subject: [PATCH] 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 Author: Euler Taveira Reviewed-by: Robert Treat Discussion: https://www.postgresql.org/message-id/flat/174393459040.678.17810152410419444783%40wrigleys.postgresql.org --- doc/src/sgml/query.sgml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -SELECT city FROM weather WHERE temp_lo = max(temp_lo); WRONG +SELECT city FROM weather WHERE temp_lo = max(temp_lo); -- WRONG but this will not work since the aggregate -- 2.30.2