Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update result_set.go to handle slices/arrays #361

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Kiro369
Copy link

@Kiro369 Kiro369 commented Dec 22, 2024

What type of PR is this?

  • bug
  • feature
  • [ x] enhancement

What problem(s) does this PR solve?

I have a query that returns a list of values
image
The scanRow function did not support scanning slices/arrays, and got me an error "scan: not supported type"

Description:

This PR adds the functionality of scanning arrays/slices to scanRow

How do you solve it?

I extracted most of the switch code to another function "setValue" to get reused while iterating the list values, "setValue" returns an error, it will be called by default, and if an error occurs propagates it

Special notes for your reviewer, ex. impact of this fix, design document, etc:

@CLAassistant
Copy link

CLAassistant commented Dec 22, 2024

CLA assistant check
All committers have signed the CLA.

@xin-hao-2025
Copy link

@Kiro369
Copy link
Author

Kiro369 commented Dec 22, 2024

I think that PR covers even more, but it's been stuck for months.

If you'd like to merge this minor change go for it, if you can get that PR merged even better

@xin-hao-2025
Copy link

I think that PR covers even more, but it's been stuck for months.

If you'd like to merge this minor change go for it, if you can get that PR merged even better

cc @wey-gu @Nicole00

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.

3 participants