Skip to content

fixed bug on like expression using MongoDB - #403

Merged
dresende merged 2 commits into
dresende:masterfrom
Elexy:mongo_expr_bug
Dec 10, 2013
Merged

dresende merged 2 commits into
dresende:masterfrom
Elexy:mongo_expr_bug

Conversation

@Elexy

@Elexy Elexy commented Dec 9, 2013

Copy link
Copy Markdown
model.find { fb_id: orm.like(websiteId + '%') }, (err, websites) ->

wouldn't work because the passed expression only contains .exp and no val.
After removing .val it all started working again.

Added a commit to correct objects that do have a '.val'

dresende added a commit that referenced this pull request Dec 10, 2013
fixed bug on like expression using MongoDB
@dresende
dresende merged commit 202a723 into dresende:master Dec 10, 2013
@vendethiel

Copy link
Copy Markdown

Is there a test for this? :)

@Elexy

Elexy commented Dec 10, 2013

Copy link
Copy Markdown
Author

@Nami-Doc good point, i will add one tmo.

@Elexy
Elexy deleted the mongo_expr_bug branch December 10, 2013 23:42
@dxg dxg added this to the v2.1.4 milestone Feb 24, 2014
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.

4 participants