git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4a12e98)
Fixed ecpg parser to allow more than one C preprocessor command inside a declare...
2010年3月20日 18:53:00 +0000 (18:53 +0000)
2010年3月20日 18:53:00 +0000 (18:53 +0000)

diff --git a/src/interfaces/ecpg/preproc/ecpg.trailer b/src/interfaces/ecpg/preproc/ecpg.trailer
index 5c09cbbd8e6ad67ea10081a65155fe1449f6c11e..e9bc9e7ae0315f4cb3728b299c6538b1fbc0534a 100644 (file)
--- a/src/interfaces/ecpg/preproc/ecpg.trailer
+++ b/src/interfaces/ecpg/preproc/ecpg.trailer
@@ -1,4 +1,4 @@
-/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/ecpg.trailer,v 1.21 2010年03月09日 11:09:45 meskes Exp $ */
+/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/ecpg.trailer,v 1.22 2010年03月20日 18:53:00 meskes Exp $ */
statements: /*EMPTY*/
| statements statement
@@ -387,13 +387,11 @@ 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: single_vt_declaration { $$ = 1ドル; }
+ | CPP_LINE { $$ = 1ドル; }
+ | vt_declarations single_vt_declaration { $$ = cat2_str(1,ドル 2ドル); }
| vt_declarations CPP_LINE { $$ = cat2_str(1,ドル 2ドル); }
;
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /