Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ikUcR-0007VA-2E for pgsql-general@arkaria.postgresql.org; Thu, 26 Dec 2019 15:00:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ikUcP-0004Er-RV for pgsql-general@arkaria.postgresql.org; Thu, 26 Dec 2019 15:00:05 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ikUcP-0004Ek-EH for pgsql-general@lists.postgresql.org; Thu, 26 Dec 2019 15:00:05 +0000 Received: from mailbackend.panix.com ([166.84.1.89]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ikUcN-0000jB-DF for pgsql-general@lists.postgresql.org; Thu, 26 Dec 2019 15:00:04 +0000 Received: from panix5.panix.com (panix5.panix.com [166.84.1.5]) by mailbackend.panix.com (Postfix) with ESMTP id 47kCmf6SqFznjl; Thu, 26 Dec 2019 10:00:02 -0500 (EST) Received: by panix5.panix.com (Postfix, from userid 17622) id 47kCmf5ccczfYc; Thu, 26 Dec 2019 10:00:02 -0500 (EST) Date: Thu, 26 Dec 2019 10:00:02 -0500 From: stan To: Jayadevan M Cc: pgsql-general@lists.postgresql.org Subject: Re: What am I doing wrong here? Message-ID: <20191226150002.GB21962@panix.com> References: <20191226133639.GA15506@panix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Editor: gVim User-Agent: Mutt/1.12.1 (2019-06-15) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Thu, Dec 26, 2019 at 07:34:28PM +0530, Jayadevan M wrote: > Hi, > > > On Thu, Dec 26, 2019 at 7:06 PM stan wrote: > > > > > > > _bom_name_key = ( SELECT > > project_bom_key > > FROM inserted ) > > ; > > > > Try rewriting > _bom_name_key = ( SELECT > project_bom_key > FROM inserted ) > > as SELECT project_bom_key into _bom_name_key > FROM inserted ; Thanks for the fast response, That did fix my issue, -- "They that would give up essential liberty for temporary safety deserve neither liberty nor safety." -- Benjamin Franklin