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

Method find_operator

schema.hh:69–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67 aggregates.push_back(r);
68 }
69 virtual op_iterator find_operator(sqltype *left, sqltype *right, sqltype *res) {
70 typekey t(left, right, res);
71 auto cons = index.equal_range(t);
72 if (cons.first == cons.second)
73 return index.end();
74 else
75 return random_pick<>(cons.first, cons.second);
76 }
77 schema() { }
78 void generate_indexes();
79};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected