()
| 846 | } |
| 847 | |
| 848 | func (f *FilterTree) hasVars() bool { |
| 849 | if (f.Func != nil) && (len(f.Func.NeedsVar) > 0) { |
| 850 | return true |
| 851 | } |
| 852 | for _, fch := range f.Child { |
| 853 | if fch.hasVars() { |
| 854 | return true |
| 855 | } |
| 856 | } |
| 857 | return false |
| 858 | } |
| 859 | |
| 860 | // getVariablesAndQuery checks if the query has a variable list and stores it in |
| 861 | // vmap. For variable list to be present, the query should have a name which is |