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

Fix document nil error #167

Merged
merged 1 commit into from
Feb 5, 2019
Merged

Fix document nil error #167

merged 1 commit into from
Feb 5, 2019

Conversation

arpando
Copy link

@arpando arpando commented Feb 4, 2019

No description provided.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 297

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 59.188%

Totals Coverage Status
Change from base Build 296: 0.0%
Covered Lines: 773
Relevant Lines: 1306

💛 - Coveralls

@dhui
Copy link
Member

dhui commented Feb 4, 2019

Can you provide the full error message and stacktrace?
Also, what version of mongo-go-driver are you using?

The existing MongoDB driver tests call Version() w/o any issue.

@arpando
Copy link
Author

arpando commented Feb 5, 2019

The FindOne always returns a "document nil error" when you pass nil as second argument, no matter whether the migrations collection exists or not

I'm using v0.2.0 of mongo-go-driver, with that simple fix works but I didn't test it in v0.1.0

Copy link
Member

@dhui dhui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

migrate currently tests with mongo-go-driver v0.1.0
It looks like a change was made to no longer accept nil filters and the README was updated accordingly

@dhui dhui merged commit c0f025d into golang-migrate:master Feb 5, 2019
@arpando arpando deleted the fix/DocumentNilError branch February 5, 2019 13:54
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