Пример #1
0
        public FieldsQuery(SrndQuery q, string fieldName, char fieldOp)
        {
            this.q = q;
            var fieldNameList = new List <string>();

            fieldNameList.Add(fieldName);
            this.fieldNames = fieldNameList;
            this.fieldOp    = fieldOp;
        }
Пример #2
0
        public FieldsQuery(SrndQuery q, string fieldName, char fieldOp)
        {
            this.q = q;
            var fieldNameList = new JCG.List <string>
            {
                fieldName
            };

            this.fieldNames = fieldNameList;
            this.fieldOp    = fieldOp;
        }
Пример #3
0
        public virtual string DistanceSubQueryNotAllowed()
        {
            var sqi = GetSubQueriesEnumerator();

            while (sqi.MoveNext())
            {
                SrndQuery leq = sqi.Current;
                if (leq is IDistanceSubQuery)
                {
                    string m = ((IDistanceSubQuery)leq).DistanceSubQueryNotAllowed();
                    if (m != null)
                    {
                        return(m);
                    }
                }
                else
                {
                    return("subquery not allowed: " + leq.ToString());
                }
            }
            return(null);
        }
Пример #4
0
        private readonly string orOperatorName = "OR"; /* for expanded queries, not normally visible */

        public FieldsQuery(SrndQuery q, IList <string> fieldNames, char fieldOp)
        {
            this.q          = q;
            this.fieldNames = fieldNames;
            this.fieldOp    = fieldOp;
        }