Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VaxpN-0005z7-BO for pgsql-odbc@arkaria.postgresql.org; Tue, 29 Oct 2013 01:10:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VaxpM-00017S-ID for pgsql-odbc@arkaria.postgresql.org; Tue, 29 Oct 2013 01:10:36 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VaxpL-00017L-Ly for pgsql-odbc@postgresql.org; Tue, 29 Oct 2013 01:10:35 +0000 Received: from sd.tpf.co.jp ([210.161.239.34]) by makus.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VaxpE-0005GN-2w for pgsql-odbc@postgresql.org; Tue, 29 Oct 2013 01:10:35 +0000 Received: (qmail 17042 invoked by uid 512); 29 Oct 2013 01:10:25 -0000 X-Authentication: inoue was authenticated by sd.tpf.co.jp at 29 Oct 2013 01:10:25 -0000 Received: from unknown (HELO ?192.168.1.3?) (110.5.29.1) by sd.tpf.co.jp with SMTP; 29 Oct 2013 01:10:25 -0000 Message-ID: <526F0AED.9010601@tpf.co.jp> Date: Tue, 29 Oct 2013 10:10:05 +0900 From: Hiroshi Inoue User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: Heikki Linnakangas CC: Michael Paquier , PostgreSQL mailing lists Subject: Re: Code not compiling since 19d5486 due to concatenate operators in macros References: <526E422D.2050604@vmware.com> In-Reply-To: <526E422D.2050604@vmware.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.0 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org (2013/10/28 19:53), Heikki Linnakangas wrote: > On 28.10.2013 10:10, Michael Paquier wrote: >> Hi all, >> (resending patch as it looks that it was stuck in administration queue >> of this ML...) >> >> I noticed this morning that ODBC does not compile correctly since >> commit 19d5486 due to some macros using concatenate operators used >> with CORR_STRCPY and CORR_VALCPY in psqlodbc.c and connection.c. >> >> In the case of CORR_VALCPY the macro simply needs to copy a field one >> by one, and for CORR_STRCPY only a string is copied, so concatenate >> operators are not necessary IMO. Please find a patch fixing that by >> removing the unnecessary operators. > > Thanks, committed to fix the build. > > Hiroshi, I didn't understand the point of that change in the first > place. The old memcpy method of copying these objects seemed fine to me. > Can you elaborate? password member of ConnInfo struct was changed to be of pgNAME type. pgNAME type essetially means a pointer. It's dangerous to simply copy a pointer to another one and I forgot the operation needed for password member of pgNAME type and it caused a double free crash later. I dislike the double free bug and changed CC_copy_conninfo to copy each item one by one for future changes. > PS. I just noticed that the email address in your git commit messages is > misspelled, "inoue@tpf.co.p". Check your .gitconfig file. Oops you are right. Thanks. regards, Hiroshi Inoue -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc