Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

fix(stringify): quote fields crossing a delimiter boundary - #575

Open
cangen185-sudo wants to merge 1 commit into
adaltas:masterfrom
cangen185-sudo:fix/quote-cross-delimiter-fields
Open

cangen185-sudo wants to merge 1 commit into
adaltas:masterfrom
cangen185-sudo:fix/quote-cross-delimiter-fields

Conversation

@cangen185-sudo

Copy link
Copy Markdown

With delimiter: "bc" and record_delimiter: "ab", stringifying a row containing ["a", "x"] emitted abcxab. The parser reads the initial ab as a record delimiter, even though the caller supplied one row with two fields.

The quoting decision now considers the separator that actually follows each field. Two regression tests exercise the corruption in both directions through the synchronous parse and stringify APIs, including the exact output and the round trip.

Before the fix the delimiter suite had 3 passes and 2 failures. With the fix, all 5 passed. The related stringify suite had 245 passes and 1 pending; parse had 629 passes and 2 pending. TypeScript and changed-file lint and formatting passed. The full workspace run was incomplete on Windows. Prepared and tested with Codex.

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.

1 participant