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

Method when_clause_insert

grammar.cc:632–640  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

630
631
632when_clause_insert::when_clause_insert(struct merge_stmt *p)
633 : when_clause(p)
634{
635 for (auto col : p->victim->columns()) {
636 auto expr = value_expr::factory(this, col.type);
637 assert(expr->type == col.type);
638 exprs.push_back(expr);
639 }
640}
641
642void when_clause_insert::out(std::ostream &out) {
643 out << "WHEN NOT MATCHED AND " << *condition;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected