Re: failed to execute the psql case statement which has the function call.

From: hubert depesz lubaczewski <depesz(at)depesz(dot)com>
To: Nikhil Ingale <niks(dot)bgm(at)gmail(dot)com>
Cc: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: failed to execute the psql case statement which has the function call.
Date: 2022-04-05 09:07:21
Message-ID: 20220405090721.GA4757@depesz.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Tue, Apr 05, 2022 at 01:30:14PM +0530, Nikhil Ingale wrote:
> Hi All,
>
> I've a case statement where I'm calling the user defined postgres function
> and failed to execute the same. Because it's assuming the variable passed
> inside the function as a column for the table.
>
> ERROR: column "attributes" does not exist
> LINE 1: ... WHEN status_code = 0 THEN CASE WHEN bmask(attributes...
>
> Need help to resolve this problem.

Well, we need to see the function. Otherwise all *I* can tell is: well,
you have to find source of the problem, and fix it.

Best regards,

depesz

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message David G. Johnston 2022-04-05 13:34:24 Re: failed to execute the psql case statement which has the function call.
Previous Message Nikhil Ingale 2022-04-05 08:00:14 failed to execute the psql case statement which has the function call.