Ejemplo n.º 1
0
        /// Implements <CompareExpr> ::= <Value> IS NUll
        public Reduction CreateRULE_COMPAREEXPR_IS_NULL(Reduction reduction)
        {
            object    lhs       = ((Reduction)((Token)reduction.GetToken(0)).Data).Tag;
            Predicate predicate = new IsNullPredicate(lhs as IFunctor);

            reduction.Tag = predicate;
            if (NCacheLog.IsInfoEnabled)
            {
                NCacheLog.Info("RULE_COMPAREEXPR_IS_NULL");
            }
            return(null);
        }
 void IVisitor.VisitBefore(IsNullPredicate predicate)
 {
     this.ParentExists(predicate);
 }
 void IVisitor.VisitAfter(IsNullPredicate predicate)
 {
     this.ParentExists(predicate);
 }
Ejemplo n.º 4
0
 public void VisitIsNullPredicate(SqlFragment parent, IsNullPredicate isNullPredicate)
 {
     isNullPredicate.Operand.Build(parent, this);
     this.Script.Append("IS NULL");
 }
Ejemplo n.º 5
0
		public abstract void Visit(IsNullPredicate predicate);