projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
069b750
)
docs: use alias in WHERE clause of full text search example
author
Bruce Momjian
<bruce@momjian.us>
Sat, 21 Mar 2020 00:19:32 +0000
(20:19 -0400)
committer
Bruce Momjian
<bruce@momjian.us>
Sat, 21 Mar 2020 00:19:32 +0000
(20:19 -0400)
The current doc query specified an alias in the FROM clause and used in
it the target list, but not in the WHERE clause.
Reported-by: axykon@gmail.com
Discussion: http://postgr.es/m/
158316348159
.30450.
16075357948244298217
@wrigleys.postgresql.org
Backpatch-through: 9.5
doc/src/sgml/textsearch.sgml
patch
|
blob
|
blame
|
history
diff --git
a/doc/src/sgml/textsearch.sgml
b/doc/src/sgml/textsearch.sgml
index 9839eaa8dd2e9511e0bd476bd41f60d2ed9ab8d8..c5b254c7ca936e5a49e96015d3daa4b4c4381455 100644
(file)
--- a/
doc/src/sgml/textsearch.sgml
+++ b/
doc/src/sgml/textsearch.sgml
@@
-200,7
+200,7
@@
WHERE mid = 12;
SELECT m.title || ' ' || m.author || ' ' || m.abstract || ' ' || d.body AS document
FROM messages m, docs d
-WHERE m
id = did AND
mid = 12;
+WHERE m
.mid = d.did AND m.
mid = 12;
</programlisting>
</para>