Skip to content

Commit 00f34ce

Browse files
electrolyclaude
andcommitted
Fix ALTER TABLE grammar to use Columnkw token for COLUMN keyword
TokenType.Column (168) is an internal SQLite bytecode token, while TokenType.Columnkw (61) is the actual keyword token produced by the tokenizer for the COLUMN keyword. This fixes parsing of ALTER TABLE ... ALTER COLUMN ... SET NOT NULL and DROP NOT NULL statements. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 59bae3d commit 00f34ce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/SqlNotebookScript/Interpreter/SqliteGrammar.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ static SqliteGrammar()
130130
),
131131
Prod($"{p}.alter", 1,
132132
Tok(TokenType.Alter),
133-
Opt(Tok(TokenType.Column)),
133+
Opt(Tok(TokenType.Columnkw)),
134134
Id("column name"),
135135
Or(
136136
Prod($"{p}.alter-set", 1,

0 commit comments

Comments
 (0)