Fix #21 and change the MQL semantics slightly to match the original MQL

This commit is contained in:
Barak Michener 2014-06-29 21:20:54 -04:00
parent 18c56be950
commit 18c4c555b5
6 changed files with 42 additions and 23 deletions

View file

@ -59,7 +59,7 @@ func (it *Int64AllIterator) Clone() Iterator {
// Prints the All iterator as just an "all".
func (it *Int64AllIterator) DebugString(indent int) string {
return fmt.Sprintf("%s(%s)", strings.Repeat(" ", indent), it.Type())
return fmt.Sprintf("%s(%s tags: %v)", strings.Repeat(" ", indent), it.Type(), it.Tags())
}
// Next() on an Int64 all iterator is a simple incrementing counter.

View file

@ -173,6 +173,9 @@ func (it *AndIterator) checkCheckList(val TSVal) bool {
break
}
}
if ok {
it.Last = val
}
return CheckLogOut(it, val, ok)
}