[SERVER-111] $where clause returns no results when it starts with a newline Created: 19/Jun/09  Updated: 12/Jul/16  Resolved: 19/Jun/09

Status: Closed
Project: Core Server
Component/s: JavaScript
Affects Version/s: None
Fix Version/s: 0.9.5

Type: Bug Priority: Minor - P4
Reporter: Michael Dirolf Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

situation jeff ran into:

doing a where clause that starts with a newline

db.test.find().where("""
this.x < 2 ||
this.x > 40""")

returns no results even when the almost equivalent case

db.test.find().where("""this.x < 2 ||
this.x > 40""")

does.


Generated at Thu Feb 08 02:53:03 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.