Skip to content

fix RECORDSET returning empty columns if there's no matched rows issu… - #1733

Merged
mathiasrw merged 10 commits into
AlaSQL:cohelp/aleeekhaan/1733from
aleeekhaan:fix-issue-1547
Dec 2, 2025
Merged

mathiasrw merged 10 commits into
AlaSQL:cohelp/aleeekhaan/1733from
aleeekhaan:fix-issue-1547

Conversation

@aleeekhaan

@aleeekhaan aleeekhaan commented Jun 28, 2023 •

Copy link
Copy Markdown
Contributor

Reference issue #1547

@mathiasrw

Copy link
Copy Markdown
Member

Lovely!

Any chance you can add a test file for this so we dont accidentally introduce the problem again when we rewrite things in a few years?

@aleeekhaan

Copy link
Copy Markdown
Contributor Author

Sure. I'll add a test case for this as well.

@aleeekhaan

Copy link
Copy Markdown
Contributor Author

Hi @mathiasrw, I have edited the test case you created to use a custom function for checking that the columns exist instead on using deepEqual. Please review and let me know if any changes are required.

@mathiasrw

Copy link
Copy Markdown
Member

I see the idea - just to make sure the columns are there - but we cant suddenly provide a different response format.

Please refert to deep equal and see if you can get it to return columnId without

  "dbenum": [undefined]
  "dbprecision": [undefined]
  "dbsize": [undefined]
  "dbtypeid": "INT"

@aleeekhaan

Copy link
Copy Markdown
Contributor Author

@mathiasrw The reason deepEqual fails because in the test case we only give the columnid while the actual result also has some other fields

"dbenum": [undefined] "dbprecision": [undefined] "dbsize": [undefined] "dbtypeid": "INT"

Can we remove these fields by writing a function that modifies the response for the recordset. Will this approach be appropriate?

@mathiasrw

Copy link
Copy Markdown
Member

Yep. That is what I was working towards with 4feca50#diff-daa185eed55b4159786a570955a6a87c12074d6ed316e7c14bd1ef711aabf0d8R474

@harisiqbal12

Copy link
Copy Markdown

@mathiasrw What's the update on this?

@mathiasrw

Copy link
Copy Markdown
Member

@harisiqbal12 Hmmm. Good question. Let me look into this over the weekend.

@mathiasrw

Copy link
Copy Markdown
Member

If anyone can pick this up that would be amazing.

@mathiasrw
mathiasrw changed the base branch from develop to cohelp/aleeekhaan/1733 December 2, 2025 12:13
@mathiasrw

Copy link
Copy Markdown
Member

Lifting this in, to get help solving the last little things.

@mathiasrw
mathiasrw merged commit 39d17ea into AlaSQL:cohelp/aleeekhaan/1733 Dec 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants