DBQuery.prototype.comment should behave similarly to sort()

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Shell
    • None
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      It looks like
      DBQuery.prototype.comment clones a cursor and returns its first
      result. And this seems different from other DBQuery functions that
      call _addSpecial() just to modify an existing query (eg
      DBQuery.prototype.sort)

      DBQuery.prototype.comment = function (comment) {
          var n = this.clone();
          n._ensureSpecial();
          n._addSpecial("$comment", comment);
          return this.next();
      }
      

            Assignee:
            Unassigned
            Reporter:
            Aaron Staple (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: