Pgsql error in coalesce

From: Chamath Sajeewa <csgsajeewa(at)gmail(dot)com>
To: pgsql-novice(at)lists(dot)postgresql(dot)org
Subject: Pgsql error in coalesce
Date: 2020-07-27 16:51:17
Message-ID: CACpofejQ12OBATx9Mi1YB24bj4Y4Ey6gq0fmncPp-b3hAyRtyQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

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".
Any idea?
Thank You!!

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Stephen Froehlich 2020-07-27 17:05:46 RE: Pgsql error in coalesce
Previous Message Chamath Sajeewa 2020-07-27 06:55:25 Re: Not null constraint in postgre