func (this *JSConverter) VisitIsNotNull(expr *expression.IsNotNull) (interface{}, error) { var buf bytes.Buffer buf.WriteString("(") buf.WriteString(this.Visit(expr.Operand())) buf.WriteString(" != null)") return buf.String(), nil }
func newSargNotNull(expr *expression.IsNotNull) *sargNotNull { rv := &sargNotNull{} rv.sarg = func(expr2 expression.Expression) (Spans, error) { if expr.EquivalentTo(expr2) { return _SELF_SPANS, nil } if !expr.Operand().EquivalentTo(expr2) { return nil, nil } return _VALUED_SPANS, nil } return rv }