Skip to content

[WIP] Fix RECORDSET returning empty columns if no matched rows - #2295

Merged
mathiasrw merged 3 commits into
cohelp/aleeekhaan/1733from
copilot/sub-pr-2294
Dec 2, 2025
Merged

mathiasrw merged 3 commits into
cohelp/aleeekhaan/1733from
copilot/sub-pr-2294

Conversation

Copilot AI commented Dec 2, 2025 •

Copy link
Copy Markdown
Contributor
  • Understand the issue SELECT RECORDSET * from csv returning empty columns if there's no matched rows #1547 - RECORDSET returns empty columns when there are no matched rows
  • Review existing code changes in src/40select.js
  • Identify the bug in the current implementation (incorrect handling of source.columns)
  • Fix the code to properly check if source.columns is an array before concatenating
  • Improve test1547.js with better assertions
  • Add additional test case for multiple columns
  • Format code with Prettier
  • Run tests to verify the fix works correctly
  • Verify no regressions in other tests (test046 was already failing)
  • Address code review feedback - add braces for consistency

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits December 2, 2025 12:25
- Fixed the modify function in src/40select.js to properly handle empty result sets by checking if source.columns is an array before concatenating
- Improved test1547.js with better assertions and added a second test case for multiple columns
- Verified the fix works correctly for both single and multiple column scenarios

Co-authored-by: mathiasrw <[email protected]>
@mathiasrw
mathiasrw merged commit 35a7067 into cohelp/aleeekhaan/1733 Dec 2, 2025
Copilot AI requested a review from mathiasrw December 2, 2025 12:29
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.

2 participants