Skip to content

Commit c5895c8

Browse files
kyleconroyclaude
andcommitted
Preserve original case for generic database scoped configuration options
- Use original case for GenericOptionKind identifier in ALTER DATABASE SCOPED CONFIGURATION Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent d0e66d1 commit c5895c8

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

parser/parse_ddl.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3781,7 +3781,8 @@ func (p *Parser) parseAlterDatabaseScopedConfigurationSetStatement(secondary boo
37813781
Secondary: secondary,
37823782
}
37833783

3784-
optionName := strings.ToUpper(p.curTok.Literal)
3784+
optionNameOriginal := p.curTok.Literal // preserve original case for generic options
3785+
optionName := strings.ToUpper(optionNameOriginal)
37853786
p.nextToken() // consume option name
37863787

37873788
// Expect =
@@ -3830,7 +3831,7 @@ func (p *Parser) parseAlterDatabaseScopedConfigurationSetStatement(secondary boo
38303831
default:
38313832
// Handle generic options (like DW_COMPATIBILITY_LEVEL)
38323833
optionKindIdent := &ast.Identifier{
3833-
Value: optionName,
3834+
Value: optionNameOriginal, // use original case
38343835
QuoteType: "NotQuoted",
38353836
}
38363837

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"todo": true}
1+
{}

0 commit comments

Comments
 (0)