Re: Pgsql error in coalesce

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Pgsql error in coalesce
Дата
Msg-id 20200727174207.GA26624@alvherre.pgsql
обсуждение исходный текст
Ответ на Pgsql error in coalesce  (Chamath Sajeewa <csgsajeewa@gmail.com>)
Ответы Re: Pgsql error in coalesce
Список pgsql-novice
On 2020-Jul-27, Chamath Sajeewa wrote:

> Hi,
> There is table with int4 column. When select query is executed as "select
> coalesce(column_name, 255), query is failing with below error.
> "COALESCE types text and integer cannot be mached".

I'd bet you're not querying the table you think you're querying ...
What does "\d table" show?  Also, please show the complete query, and
SHOW search_path .

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



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

Предыдущее
От: David Raymond
Дата:
Сообщение: RE: Pgsql error in coalesce
Следующее
От: Chamath Sajeewa
Дата:
Сообщение: Re: Pgsql error in coalesce