8000 Remove old elements from the output parameter of Pluck() by zenovich · Pull Request #2411 · go-gorm/gorm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Remove old elements from the output parameter of Pluck() #2411

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

Merged
merged 4 commits into from
May 5, 2019

Conversation

zenovich
Copy link
Contributor

Make sure these boxes checked before submitting your pull request.

  • Do only one thing
  • No API-breaking changes
  • New code/logic commented & tested

For significant changes like big bug fixes, new features, please open an issue to make an agreement on an implementation design/plan first before starting it.

What did this pull request do?

Currently, the Pluck() method keeps old elements in the output parameter. So, if someone calls Pluck() twice, the results would be doubled. The patch fixes this incorrect behaviour.

@emirb emirb merged commit 018491a into go-gorm:master May 5, 2019
@emirb
Copy link
Contributor
emirb commented May 5, 2019

Thanks @zenovich.

blefevre pushed a commit to blefevre/gorm that referenced this pull request Feb 17, 2020
Remove old elements from the output parameter of Pluck()
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
0