Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-111

$where clause returns no results when it starts with a newline

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 0.9.5
    • Affects Version/s: None
    • Component/s: JavaScript
    • None

      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.

            Assignee:
            eliot Eliot Horowitz (Inactive)
            Reporter:
            mike Michael Dirolf
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: