aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tcop/postgres.c
diff options
context:
space:
mode:
authorMichael Meskes <meskes@postgresql.org>2013-11-26 17:12:39 +0100
committerMichael Meskes <meskes@postgresql.org>2013-11-26 17:32:06 +0100
commit5bffd42a3b0b049ea0e44a69c99ce3c3c5418af0 (patch)
tree6bff3c5f2522607323ba4e398096aad545f3ea5a /src/backend/tcop/postgres.c
parent20ada26ea210f04a6cd97cef34a4101757eef583 (diff)
downloadpostgresql-5bffd42a3b0b049ea0e44a69c99ce3c3c5418af0.tar.gz
postgresql-5bffd42a3b0b049ea0e44a69c99ce3c3c5418af0.zip
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>
Diffstat (limited to 'src/backend/tcop/postgres.c')
0 files changed, 0 insertions, 0 deletions