Fixed reduce/recuce problem due to CURRENT_P.
authorMichael Meskes <meskes@postgresql.org>
Tue, 12 Jun 2007 11:32:30 +0000 (11:32 +0000)
committerMichael Meskes <meskes@postgresql.org>
Tue, 12 Jun 2007 11:32:30 +0000 (11:32 +0000)
src/interfaces/ecpg/preproc/preproc.y

index 8e66f6541b5cdf40c92fa8680f4349ae979d0f6e..8aca9711e7816483cca1388684531738d90862d2 100644 (file)
@@ -6449,7 +6449,6 @@ ECPGunreserved_con:         ABORT_P                       { $$ = make_str("abort"); }
                | CREATEROLE            { $$ = make_str("createrole"); }
                | CREATEUSER            { $$ = make_str("createuser"); }
                | CSV                           { $$ = make_str("csv"); }
-               | CURRENT_P                     { $$ = make_str("current"); }
                | CURSOR                        { $$ = make_str("cursor"); }
                | CYCLE                         { $$ = make_str("cycle"); }
                | DATABASE                      { $$ = make_str("database"); }
@@ -6752,6 +6751,7 @@ reserved_keyword:
                | COLUMN                        { $$ = make_str("column"); }
                | CONSTRAINT            { $$ = make_str("constraint"); }
                | CREATE                        { $$ = make_str("create"); }
+               | CURRENT_P                     { $$ = make_str("current"); }
                | CURRENT_DATE          { $$ = make_str("current_date"); }
                | CURRENT_TIME          { $$ = make_str("current_time"); }
                | CURRENT_TIMESTAMP     { $$ = make_str("current_timestamp"); }