pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: hubert depesz lubaczewski <depesz@depesz.com>
To: Nikhil Ingale <niks.bgm@gmail.com>
Cc: pgsql-admin@lists.postgresql.org
Subject: Re: failed to execute the psql case statement which has the function call.
Date: Tue, 5 Apr 2022 11:07:21 +0200
Message-ID: <20220405090721.GA4757@depesz.com> (raw)
In-Reply-To: <CALXkTpzzBp7+NjXt5QptMsefJGgnnxoE2mQJKHR0-ucyZaUd+A@mail.gmail.com>
References: <CALXkTpzzBp7+NjXt5QptMsefJGgnnxoE2mQJKHR0-ucyZaUd+A@mail.gmail.com>

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






view thread (7+ messages)  latest in thread

Message-ID: <20220405090721.GA4757@depesz.com>
Permalink:  ../20220405090721.GA4757@depesz.com/
Also on:    postgresql.org/message-id/20220405090721.GA4757@depesz.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: depesz@depesz.com, niks.bgm@gmail.com, pgsql-admin@lists.postgresql.org
  Subject: Re: failed to execute the psql case statement which has the function call.
  In-Reply-To: <20220405090721.GA4757@depesz.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox