Re: coalesce(json_agg [..] filter where [..], '[]' in left join returning null

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: coalesce(json_agg [..] filter where [..], '[]' in left join returning null
Дата
Msg-id CAKFQuwZmevwm7pZdQiz3b5cwF8r0auKHVK8b7cpSmAFhjAWvbA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: coalesce(json_agg [..] filter where [..], '[]' in left join returning null  (Stefan Houtzager <stefan.houtzager@gmail.com>)
Ответы Re: coalesce(json_agg [..] filter where [..], '[]' in left join returning null  (Stefan Houtzager <stefan.houtzager@gmail.com>)
Список pgsql-novice
On Wed, Jan 6, 2021 at 8:59 AM Stefan Houtzager <stefan.houtzager@gmail.com> wrote:

ERROR: operator does not exist: json = json LINE 11: COALESCE(NULLIF( ^ HINT: No operator matches the given name and argument types. You might need to add explicit type casts. SQL state: 42883 Character: 306  


Right, json doesn't implement equality.  You will need to cast to and compare text values.

David J.

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

Предыдущее
От: Pól Ua Laoínecháin
Дата:
Сообщение: Understanding aggregation and window functions.
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: Understanding aggregation and window functions.