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

Method joined_table

grammar.cc:153–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153joined_table::joined_table(prod *p) : table_ref(p) {
154 lhs = table_ref::factory(this);
155 rhs = table_ref::factory(this);
156
157 condition = join_cond::factory(this, *lhs, *rhs);
158
159 if (d6()<4) {
160 type = "inner";
161 } else if (d6()<4) {
162 type = "left";
163 } else {
164 type = "right";
165 }
166
167 for (auto ref: lhs->refs)
168 refs.push_back(ref);
169 for (auto ref: rhs->refs)
170 refs.push_back(ref);
171}
172
173void joined_table::out(std::ostream &out) {
174 out << *lhs;

Callers

nothing calls this directly

Calls 1

d6Function · 0.85

Tested by

no test coverage detected