Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bjS6w-00010D-9y for pgadmin-hackers@arkaria.postgresql.org; Mon, 12 Sep 2016 14:21:26 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bjS6v-0008LJ-7g for pgadmin-hackers@arkaria.postgresql.org; Mon, 12 Sep 2016 14:21:25 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bjS6u-0008Jy-Ic for pgadmin-hackers@postgresql.org; Mon, 12 Sep 2016 14:21:24 +0000 Received: from mail-it0-x236.google.com ([2607:f8b0:4001:c0b::236]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bjS6r-0004pX-6q for pgadmin-hackers@postgresql.org; Mon, 12 Sep 2016 14:21:23 +0000 Received: by mail-it0-x236.google.com with SMTP id 186so13367393itf.0 for ; Mon, 12 Sep 2016 07:21:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pgadmin-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=m0FT1+g1I62adjGqCOBU+B8eKS8P8WQpyzvnvndA1DY=; b=NamRN8ewAiNgK/ryKVdY00yetM3Vw5SJsFGadvVGxrIinGjjxNuZyDPDYo+U9R55vr VkYGXKIgACtvVPu5RDDPj4F5+gUsNB21ngymKTqHe+OhsLi3JfJAQW4DXhaTasH+DW7a nZpo4bHXVdSqp5SZ/6BgSmkVICd9VQoiSwJSjyWoxkWAI643+netWxLbl/hsEKlBTuIO IyGbawSdArQ6xh2d75Hw5VTqnZhToebYYDk7YGH7vsMmS0gDaBZUzDsVZKZoB2hUaEiD eVeA6JTNjV8Vw4Pran4A+oZeUdnGVhZKSK68UREGlCMu9jLfegKvOnQiufJicnTfkwPF l1TQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=m0FT1+g1I62adjGqCOBU+B8eKS8P8WQpyzvnvndA1DY=; b=bxiXnf5Z+jVKumTQ2M2IqjnNk4GNIrziZCc8uK233JXLUYWxMJ4FzoiDcUflVXdfkD EPSN+kSAMJEI6p89Mrr2Srd5VkDg+1XJIzJkhTmCLCbYBX912C2COs8GKRo5Aeme6B43 Ff/r2HSO8WBu3uXLOjVIQ5JIGDJpjlh68y+V0VpfF5j6EsFH1/jv9f2a1gCcpH5eBPt8 eUTNpbi3yT6yTiSZVgrlaBz8uwfueK6DxPIdT0gRbWNf7cOrwC3hKhWsQGGHlEWD1qgC vo1bGGoEEXGPcWZBJ6F/RmXhCtyyKkwXuzI9l34GdhVMRPorF2EKj8NM17zAe8qNKI8W uPTA== X-Gm-Message-State: AE9vXwPVNAfrwkRlimbcW4iT/dBZdHoLobUe2aZqdCI8hjheQBRF+WD59xQ1mDXqSAuMemhEAP4ynLEeqT+DbA== X-Received: by 10.157.33.15 with SMTP id i15mr22085453otb.75.1473690079186; Mon, 12 Sep 2016 07:21:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.1.203 with HTTP; Mon, 12 Sep 2016 07:21:18 -0700 (PDT) In-Reply-To: References: From: Dave Page Date: Mon, 12 Sep 2016 15:21:18 +0100 Message-ID: Subject: Re: Re: [pgAdmin4][Patch]: RM1683 - Reverse engineered SQL for function ALTERs/ACLs is incorrect with OUT parameters To: Surinder Kumar Cc: pgadmin-hackers Content-Type: text/plain; charset=UTF-8 X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgadmin-hackers Precedence: bulk Sender: pgadmin-hackers-owner@postgresql.org Thanks, applied. On Mon, Sep 12, 2016 at 11:57 AM, Surinder Kumar wrote: > Hi > > I forgot to remove a line args_without_name += ', ' from the code in > previous patch, thus it adds extra commas into the function arguments in > case of procedures only. > It is now fixed. > Please find updated v2 patch and review. > > > On Mon, Sep 12, 2016 at 3:54 PM, Surinder Kumar > wrote: >> >> This patch doesn't fix the issue in Procedure node. I will send updated >> patch. >> >> On Mon, Sep 12, 2016 at 3:12 PM, Surinder Kumar >> wrote: >>> >>> Hi, >>> >>> Please find attached patch with fix. >>> Changes: >>> 1) Take a list of "function argument types", create a string separated by >>> comma(removing trailing comma). >>> 2) Function arguments in ALTER and GRANT not necessarily to have argument >>> mode, name, they are optional. Only type is required. >>> Now GRANT statement is represented as >>> >>> GRANT EXECUTE ON FUNCTION test_schema.test_func(integer, integer, >>> integer) TO postgres as in pgadmin3. >>> >>> >>> Please review. >> >> > > > > -- > Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgadmin-hackers > -- Dave Page Blog: http://pgsnake.blogspot.com Twitter: @pgsnake EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-hackers