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

Method table_or_query_name

grammar.cc:33–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33table_or_query_name::table_or_query_name(prod *p) : table_ref(p) {
34 t = random_pick(scope->tables);
35 refs.push_back(make_shared<aliased_relation>(scope->stmt_uid("ref"), t));
36}
37
38void table_or_query_name::out(std::ostream &out) {
39 out << t->ident() << " as " << refs[0]->ident();

Callers

nothing calls this directly

Calls 2

random_pickFunction · 0.85
stmt_uidMethod · 0.80

Tested by

no test coverage detected