Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 7e786a8

Browse files
author
Michael Meskes
committed
Fixed more parsing bugs in other CREATE statements as pointed out by TANIDA
Yutaka <tanida@sra.co.jp>.
1 parent 35878b9 commit 7e786a8

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/interfaces/ecpg/ChangeLog

+5
Original file line numberDiff line numberDiff line change
@@ -1906,5 +1906,10 @@ Wed Feb 2 16:35:27 CET 2005
19061906
Wed Feb 9 12:24:03 CET 2005
19071907

19081908
- Fixed bug in parsing of CREATE AS statement.
1909+
1910+
Thu Feb 10 09:03:56 CET 2005
1911+
1912+
- Fixed more parsing bugs in other CREATE statements. Thanks to TANIDA
1913+
Yutaka <tanida@sra.co.jp> for pointing out all these problems.
19091914
- Set ecpg version to 3.2.1.
19101915

src/interfaces/ecpg/preproc/preproc.y

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.306 2005/02/09 11:26:44 meskes Exp $ */
1+
/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.307 2005/02/10 08:06:35 meskes Exp $ */
22

33
/* Copyright comment */
44
%{
@@ -1621,7 +1621,7 @@ CreateAsElement: ColId { $$ = $1; }
16211621
*****************************************************************************/
16221622

16231623
CreateSeqStmt: CREATE OptTemp SEQUENCE qualified_name OptSeqList
1624-
{ $$ = cat_str(4, make_str("create"), $2, make_str("sequence"), $4, $5); }
1624+
{ $$ = cat_str(5, make_str("create"), $2, make_str("sequence"), $4, $5); }
16251625
;
16261626

16271627
AlterSeqStmt: ALTER SEQUENCE qualified_name OptSeqList
@@ -2705,7 +2705,7 @@ DropdbStmt: DROP DATABASE database_name
27052705

27062706
CreateDomainStmt: CREATE DOMAIN_P any_name opt_as Typename ColQualList
27072707
{
2708-
$$ = cat_str(55555, make_str("create domain"), $3, $4, $5, $6);
2708+
$$ = cat_str(5, make_str("create domain"), $3, $4, $5, $6);
27092709
}
27102710
;
27112711

0 commit comments

Comments
 (0)