Changeset: 67e36bf046b2 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/67e36bf046b2
Modified Files:
        sql/server/sql_parser.y
Branch: default
Log Message:

desc/asc aren't reserved keywords ie need to be added such that we can use 
those as table /column names


diffs (28 lines):

diff --git a/sql/server/sql_parser.y b/sql/server/sql_parser.y
--- a/sql/server/sql_parser.y
+++ b/sql/server/sql_parser.y
@@ -5653,8 +5653,6 @@ ident:
 
 non_reserved_word:
   AS           { $$ = sa_strdup(SA, "as"); }           /* sloppy: officially 
reserved */
-| ASC          { $$ = sa_strdup(SA, "asc"); }          /* sloppy: officially 
reserved */
-| DESC         { $$ = sa_strdup(SA, "desc"); }         /* sloppy: officially 
reserved */
 | AUTHORIZATION        { $$ = sa_strdup(SA, "authorization"); }/* sloppy: 
officially reserved */
 | COLUMN       { $$ = sa_strdup(SA, "column"); }       /* sloppy: officially 
reserved */
 | CYCLE                { $$ = sa_strdup(SA, "cycle"); }        /* sloppy: 
officially reserved */
@@ -5683,6 +5681,7 @@ non_reserved_word:
 
 | ACTION       { $$ = sa_strdup(SA, "action"); }
 | ANALYZE      { $$ = sa_strdup(SA, "analyze"); }
+| ASC          { $$ = sa_strdup(SA, "asc"); }
 | AUTO_COMMIT  { $$ = sa_strdup(SA, "auto_commit"); }
 | BIG          { $$ = sa_strdup(SA, "big"); }
 | CACHE                { $$ = sa_strdup(SA, "cache"); }
@@ -5691,6 +5690,7 @@ non_reserved_word:
 | COMMENT      { $$ = sa_strdup(SA, "comment"); }
 | DATA         { $$ = sa_strdup(SA, "data"); }
 | DECADE       { $$ = sa_strdup(SA, "decade"); }
+| DESC         { $$ = sa_strdup(SA, "desc"); }
 | DIAGNOSTICS  { $$ = sa_strdup(SA, "diagnostics"); }
 | DOW          { $$ = sa_strdup(SA, "dow"); }
 | DOY          { $$ = sa_strdup(SA, "doy"); }
_______________________________________________
checkin-list mailing list -- checkin-list@monetdb.org
To unsubscribe send an email to checkin-list-le...@monetdb.org

Reply via email to