Exemplo n.º 1
0
        public override string ToString()
        {
            StringBuilder r = new StringBuilder();

            r.Append("(");
            FieldNamesToString(r);
            r.Append(q.ToString());
            r.Append(")");
            return(r.ToString());
        }
Exemplo n.º 2
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);
        }