postgresql/src/interfaces
Michael Meskes b46fa32100 ECPG: Make the preprocessor emit ';' if the variable type for a list of
variables is varchar. This fixes this test case:

int main(void)
{
    exec sql begin declare section;
    varchar a[50], b[50];
    exec sql end declare section;

    return 0;
}

Since varchars are internally turned into custom structs and
the type name is emitted for these variable declarations,
the preprocessed code previously had:

struct varchar_1  { ... }  a _,_  struct varchar_2  { ... }  b ;

The comma in the generated C file was a syntax error.

There are no regression test changes since it's not exercised.

Patch by Boszormenyi Zoltan <zb@cybertec.at>
2013-11-26 17:42:32 +01:00
..
ecpg ECPG: Make the preprocessor emit ';' if the variable type for a list of 2013-11-26 17:42:32 +01:00
libpq Replace appendPQExpBuffer(..., <constant>) with appendPQExpBufferStr 2013-11-18 18:34:51 +02:00
Makefile Fix parallel make when running make install before make all 2011-03-08 23:52:29 +02:00