Skip to content

Enhance CSV output handling and documentation#125

Merged
wagga40 merged 1 commit intomasterfrom
3.5.0-csv-patch
Mar 21, 2026
Merged

Enhance CSV output handling and documentation#125
wagga40 merged 1 commit intomasterfrom
3.5.0-csv-patch

Conversation

@wagga40
Copy link
Copy Markdown
Owner

@wagga40 wagga40 commented Mar 21, 2026

The CSV DictWriter was created once from the keys of the first match. Later rules can return more columns (e.g. SELECT * vs a narrow SELECT), so writerow raised ValueError: dict contains fields not in fieldnames.

Fix #122

@wagga40 wagga40 merged commit 0c2babf into master Mar 21, 2026
2 checks passed
@wagga40 wagga40 deleted the 3.5.0-csv-patch branch March 21, 2026 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CSV export fails when results contain additional fields (ValueError: dict contains fields not in fieldnames)

1 participant