diff options
| author | Michael Meskes <meskes@postgresql.org> | 2005-02-02 15:37:43 +0000 |
|---|---|---|
| committer | Michael Meskes <meskes@postgresql.org> | 2005-02-02 15:37:43 +0000 |
| commit | 4b56bd85c01707d70cd7bcbecdeba80790614cb0 (patch) | |
| tree | 8911085698cc4d06616b07d1b0b9335ced2040c2 /src/interfaces/ecpg/preproc/preproc.y | |
| parent | cde6056e34ac45a3d76028deabdfa09c5404db78 (diff) | |
| download | postgresql-4b56bd85c01707d70cd7bcbecdeba80790614cb0.tar.gz | |
Fixed bug in parsing of #line statement in declare section.
Diffstat (limited to 'src/interfaces/ecpg/preproc/preproc.y')
| -rw-r--r-- | src/interfaces/ecpg/preproc/preproc.y | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/interfaces/ecpg/preproc/preproc.y b/src/interfaces/ecpg/preproc/preproc.y index 6797787d8e..b70fa94872 100644 --- a/src/interfaces/ecpg/preproc/preproc.y +++ b/src/interfaces/ecpg/preproc/preproc.y @@ -1,4 +1,4 @@ -/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.304 2005/01/25 12:51:31 meskes Exp $ */ +/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.305 2005/02/02 15:37:43 meskes Exp $ */ /* Copyright comment */ %{ @@ -4635,12 +4635,14 @@ sql_enddeclare: ecpgstart END_P DECLARE SQL_SECTION ';' {}; var_type_declarations: /*EMPTY*/ { $$ = EMPTY; } | vt_declarations { $$ = $1; } + | CPP_LINE { $$ = $1; } ; vt_declarations: var_declaration { $$ = $1; } | type_declaration { $$ = $1; } | vt_declarations var_declaration { $$ = cat2_str($1, $2); } | vt_declarations type_declaration { $$ = cat2_str($1, $2); } + | vt_declarations CPP_LINE { $$ = cat2_str($1, $2); } ; variable_declarations: var_declaration { $$ = $1; } |
