Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dGqO8-0003S0-1h for pgsql-sql@arkaria.postgresql.org; Fri, 02 Jun 2017 17:29:28 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dGqO7-0004v2-Ft for pgsql-sql@arkaria.postgresql.org; Fri, 02 Jun 2017 17:29:27 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dGqO6-0004s9-R1 for pgsql-sql@postgresql.org; Fri, 02 Jun 2017 17:29:26 +0000 Received: from mwork.nabble.com ([162.253.133.43]) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dGqO4-0004Fo-12 for pgsql-sql@postgresql.org; Fri, 02 Jun 2017 17:29:25 +0000 Received: from mben.nabble.com (unknown [162.253.133.72]) by mwork.nabble.com (Postfix) with ESMTP id D324646BEAF9E for ; Fri, 2 Jun 2017 10:29:22 -0700 (MST) Date: Fri, 2 Jun 2017 10:29:22 -0700 (MST) From: anand086 To: pgsql-sql@postgresql.org Message-ID: <1496424562862-5964545.post@n3.nabble.com> In-Reply-To: <1496367359721-5964400.post@n3.nabble.com> References: <1496363048908-5964384.post@n3.nabble.com> <1496367359721-5964400.post@n3.nabble.com> Subject: Re: Using bind variable within BEGIN END MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -0.1 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-sql Precedence: bulk Sender: pgsql-sql-owner@postgresql.org Another example where we are getting the same error is from the call of the below code -- ctx.update("" + "begin \n" + " access.register_type( \n" + " p_entity_system => ?, \n" + " p_entity_type => ?, \n" + " p_attribute_name => ?, \n" + " p_creator_id => ?, \n" + " p_description => ? \n" + " );" + "end;", systemName, entityType, attributeName, creatorID, attributeDescription); access.register_type is a function CREATE OR REPLACE FUNCTION access$register_type"( p_entity_system text, p_entity_type text, p_attribute_name text, p_owner_id text DEFAULT NULL::text, p_sia_admin text DEFAULT NULL::text, p_ad_role text DEFAULT NULL::text, p_create_role numeric DEFAULT 0, p_description text DEFAULT NULL::text, p_creator_id text DEFAULT NULL::text) RETURNS void AS $BODY$ -- View this message in context: http://www.postgresql-archive.org/Using-bind-variable-within-BEGIN-END-tp5964384p5964545.html Sent from the PostgreSQL - sql mailing list archive at Nabble.com. -- Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-sql