Re: Displaying chat by punished users only to themselves (db fiddle attached)

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: Displaying chat by punished users only to themselves (db fiddle attached)
Дата
Msg-id CAKFQuwZ5gvocEerjANkWP5eA3aE-23oBsZU+Sf5=_WbhoxV8Wg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Displaying chat by punished users only to themselves (db fiddle attached)  (Alexander Farber <alexander.farber@gmail.com>)
Ответы Re: Displaying chat by punished users only to themselves (db fiddle attached)  (Alexander Farber <alexander.farber@gmail.com>)
Список pgsql-general
On Wed, May 4, 2022 at 8:53 AM Alexander Farber <alexander.farber@gmail.com> wrote:

        JOIN    cte
        WHERE   c.gid    = in_gid
        AND     (c.uid = myself.uid OR NOT opponent.muted)
        ORDER BY c.CREATED ASC;

ERROR:  syntax error at or near "WHERE"
LINE 67:         WHERE   c.gid    = in_gid
                 ^

And if I remove the "JOIN cte" line, then the error is:

ERROR:  missing FROM-clause entry for table "cte"
LINE 64: ...elf.uid IN (g.player1, g.player2) AND myself.uid = cte.uid) 

Try "CROSS JOIN cte" - that variant doesn't require a join condition.

В списке pgsql-general по дате отправления:

Предыдущее
От: Alexander Farber
Дата:
Сообщение: Re: Displaying chat by punished users only to themselves (db fiddle attached)
Следующее
От: Alexander Farber
Дата:
Сообщение: Re: Displaying chat by punished users only to themselves (db fiddle attached)