Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 351E1B5DC01 for ; Fri, 23 Sep 2011 03:24:40 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 00138-04 for ; Fri, 23 Sep 2011 06:24:33 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from mail-pz0-f44.google.com (mail-pz0-f44.google.com [209.85.210.44]) by mail.postgresql.org (Postfix) with ESMTP id D946EB5DBF7 for ; Fri, 23 Sep 2011 03:24:31 -0300 (ADT) Received: by pzk32 with SMTP id 32so12771304pzk.3 for ; Thu, 22 Sep 2011 23:24:31 -0700 (PDT) Received: by 10.68.15.34 with SMTP id u2mr8243835pbc.59.1316759070926; Thu, 22 Sep 2011 23:24:30 -0700 (PDT) Received: from [10.1.1.6] (124-148-242-247.dyn.iinet.net.au. [124.148.242.247]) by mx.google.com with ESMTPS id 2sm19504462pbu.1.2011.09.22.23.24.28 (version=SSLv3 cipher=OTHER); Thu, 22 Sep 2011 23:24:30 -0700 (PDT) Message-ID: <4E7C261A.3010908@ringerc.id.au> Date: Fri, 23 Sep 2011 14:24:26 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2 MIME-Version: 1.0 To: Lionel Elie Mamane CC: pgsql-bugs@postgresql.org Subject: Re: BUG #6216: Calling PQconnectdbParams from C++ with a char** References: <201109201605.p8KG5tku049175@wwwmaster.postgresql.org> <4E7921D3.7030209@ringerc.id.au> <20110921082517.GA28080@capsaicin.mamane.lu> In-Reply-To: <20110921082517.GA28080@capsaicin.mamane.lu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201109/157 X-Sequence-Number: 31174 On 21/09/2011 4:25 PM, Lionel Elie Mamane wrote: > I added my initial patch, and as far as I understand, I have to send > the revised patch to the list before I can register it at the > commitfest. So here is my revised patch, that uses "const char *const * " > like elsewhere in the same file instead of "char const* const*". Yep, I'm happy with that. It does what it says and no more. I have *NOT* done any detailed testing, as I'm in the middle of moving house, but I find it hard to see how it can break anything that isn't its self incorrect. You can still pass a `char *' to a `const char * const' param, so it won't break any call sites. -- Craig Ringer