Changeset: 4b583b099606 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/4b583b099606
Modified Files:
        sql/server/sql_parser.y
Branch: Dec2025
Log Message:

allow more identifiers (including the non reserved keywords)
NAME is also a bare label identifier (ie those without AS)


diffs (23 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
@@ -3692,8 +3692,8 @@ expr_list:
        ;
 
 named_value_commalist:
-               ident scalar_exp                           { $$ = 
append_string(append_symbol(L(), $2), $1); }
-       |       named_value_commalist ',' ident scalar_exp { $$ = 
append_string(append_symbol($1, $4), $3); }
+               column_id scalar_exp                           { $$ = 
append_string(append_symbol(L(), $2), $1); }
+       |       named_value_commalist ',' column_id scalar_exp { $$ = 
append_string(append_symbol($1, $4), $3); }
        ;
 
 null:
@@ -5257,7 +5257,7 @@ param:
                        sql_add_param(m, NULL, NULL);
                        $$ = _symbol_create_int( SQL_PARAMETER, nr );
                }
-       |       ':'ident
+       |       ':'column_id
                {
                        int nr = sql_bind_param( m, $2);
                        if (nr < 0) {
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to