Skip to content

Commit 2557fd9

Browse files
authored
Make CLOSE a context-aware keyword to close #2248 (#2423)
Co-authored-by: copilot-swe-agent[bot] Co-authored-by: ericmort
1 parent 0b2492d commit 2557fd9

File tree

3 files changed

+961
-803
lines changed

3 files changed

+961
-803
lines changed

src/alasqlparser.jison

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,8 @@ Literal
363363
{ $$ = $1.toLowerCase(); }
364364
| OPEN
365365
{ $$ = $1.toLowerCase(); }
366+
| CLOSE
367+
{ $$ = $1.toLowerCase(); }
366368
| error NonReserved
367369
{ $$ = $2.toLowerCase() }
368370
;
@@ -3195,6 +3197,7 @@ NonReserved
31953197
|CHARACTER_SET_NAME
31963198
|CHARACTER_SET_SCHEMA
31973199
|CLASS_ORIGIN
3200+
|CLOSE
31983201
|COBOL
31993202
|COLLATION
32003203
|COLLATION_CATALOG
@@ -3472,6 +3475,7 @@ var nonReserved = ["A"
34723475
,"CHARACTER_SET_NAME"
34733476
,"CHARACTER_SET_SCHEMA"
34743477
,"CLASS_ORIGIN"
3478+
,"CLOSE"
34753479
,"COBOL"
34763480
,"COLLATION"
34773481
,"COLLATION_CATALOG"

0 commit comments

Comments
 (0)