-
Notifications
You must be signed in to change notification settings - Fork 103
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
fix(go/adbc/driver/internal/driverbase): proper unmarshalling for ConstraintColumnNames #2285
Conversation
CC @davidhcoe Can you confirm that this fixes the issue reported? |
This doesn't work for me. I put together a sample to test with based on the result I get from Snowflake:
|
@davidhcoe I've updated the PR and added a test based on your example. Can you confirm it works for you? |
Yes -- it works for me now. Thank you. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch with the non-pointer receiver, thanks!
Fixes #2278
The current
UnmarshalJSON
function forrequiredList
ended up unmarshalling into a copy of the underlying slice rather than using the actual slice, so the data wasn't being propagated appropriately. This fixes theUnmarshalJSON
function to handle the scenario appropriately.