Skip site navigation (1) Skip section navigation (2)

Code not compiling since 19d5486 due to concatenate operators in macros

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: PostgreSQL mailing lists <pgsql-odbc(at)postgresql(dot)org>
Subject: Code not compiling since 19d5486 due to concatenate operators in macros
Date: 2013-10-28 08:10:46
Message-ID: CAB7nPqRaeqi-dfw8xy9pXEYM6UL6LqJmTcn+BjJdqi=gqU2=Nw@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-odbc
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.
Regards,
-- 
Michael

Attachment: 20131028_pgodbc_concatenate_ops.patch
Description: text/x-diff (1.3 KB)

Responses

pgsql-odbc by date

Next:From: Heikki LinnakangasDate: 2013-10-28 10:53:33
Subject: Re: Code not compiling since 19d5486 due to concatenate operators in macros
Previous:From: Martin J. EvansDate: 2013-10-04 17:01:09
Subject: SQLGetTypeInfo does not return COLUMN_SIZE

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group