Skip to content

Commit f23c6aa

Browse files
kyleconroyclaude
andcommitted
Fix InsertBulkColumnDefinition NullNotNull marshaling
Always include NullNotNull field in JSON output, using "NotSpecified" as the default value when empty or unspecified. Enables BaselinesCommon_BulkInsertStatementTests test. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 9a43ab3 commit f23c6aa

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

parser/marshal.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15707,9 +15707,12 @@ func insertBulkColumnDefinitionToJSON(c *ast.InsertBulkColumnDefinition) jsonNod
1570715707
if c.Column != nil {
1570815708
node["Column"] = columnDefinitionBaseToJSON(c.Column)
1570915709
}
15710-
if c.NullNotNull != "" && c.NullNotNull != "Unspecified" {
15711-
node["NullNotNull"] = c.NullNotNull
15710+
// Always include NullNotNull - use "NotSpecified" if empty
15711+
nullNotNull := c.NullNotNull
15712+
if nullNotNull == "" || nullNotNull == "Unspecified" {
15713+
nullNotNull = "NotSpecified"
1571215714
}
15715+
node["NullNotNull"] = nullNotNull
1571315716
return node
1571415717
}
1571515718

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)