fix #4280: add comments based on code review

pull/4385/head
David Norton 2015-10-09 18:38:33 -04:00
parent 2fbd1052b5
commit 9627f5ab84
1 changed files with 2 additions and 0 deletions

View File

@ -452,9 +452,11 @@ func (q *QueryExecutor) executeDropSeriesStatement(stmt *influxql.DropSeriesStat
}
// Delete boolean literal true filter expressions.
// These are returned for `WHERE tagKey = 'tagVal'` type expressions and are okay.
filters.DeleteBoolLiteralTrues()
// Check for unsupported field filters.
// Any remaining filters means there were fields (e.g., `WHERE value = 1.2`).
if filters.Len() > 0 {
return &influxql.Result{Err: errors.New("DROP SERIES doesn't support fields in WHERE clause")}
}