Merge pull request #6584 from influxdata/js-6581-show-tag-values-where-clause

Fix SHOW TAG VALUES condition to not filter "name" erroneously
pull/6600/head v0.13.0-rc2
Jonathan A. Sternberg 2016-05-09 12:04:03 -04:00
commit 8a04fb8293
1 changed files with 1 additions and 1 deletions

View File

@ -1126,7 +1126,7 @@ func NewTagValuesIterator(sh *Shard, opt influxql.IteratorOptions) (influxql.Ite
switch e.Op {
case influxql.EQ, influxql.NEQ, influxql.EQREGEX, influxql.NEQREGEX:
tag, ok := e.LHS.(*influxql.VarRef)
if !ok || tag.Val == "name" || strings.HasPrefix(tag.Val, "_") {
if !ok || strings.HasPrefix(tag.Val, "_") {
return nil
}
}