MCPcopy Create free account
hub / github.com/anse1/sqlsmith / null_predicate

Class null_predicate

expr.hh:103–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101};
102
103struct null_predicate : bool_expr {
104 virtual ~null_predicate() { }
105 const char *negate;
106 shared_ptr<value_expr> expr;
107 null_predicate(prod *p) : bool_expr(p) {
108 negate = ((d6()<4) ? "not " : "");
109 expr = value_expr::factory(this);
110 }
111 virtual void out(std::ostream &out) {
112 out << *expr << " is " << negate << "NULL";
113 }
114 virtual void accept(prod_visitor *v) {
115 v->visit(this);
116 expr->accept(v);
117 }
118};
119
120struct exists_predicate : bool_expr {
121 shared_ptr<struct query_spec> subquery;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected