mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-06 01:37:01 +02:00
docs: use alias in WHERE clause of full text search example
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: https://postgr.es/m/158316348159.30450.16075357948244298217@wrigleys.postgresql.org Backpatch-through: 9.5
This commit is contained in:
parent
e8a6391fc1
commit
0c96744a87
@ -200,7 +200,7 @@ WHERE mid = 12;
|
||||
|
||||
SELECT m.title || ' ' || m.author || ' ' || m.abstract || ' ' || d.body AS document
|
||||
FROM messages m, docs d
|
||||
WHERE mid = did AND mid = 12;
|
||||
WHERE m.mid = d.did AND m.mid = 12;
|
||||
</programlisting>
|
||||
</para>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user