| 213 | } |
| 214 | |
| 215 | select_list::select_list(prod *p) : prod(p) |
| 216 | { |
| 217 | do { |
| 218 | shared_ptr<value_expr> e = value_expr::factory(this); |
| 219 | value_exprs.push_back(e); |
| 220 | ostringstream name; |
| 221 | name << "c" << columns++; |
| 222 | sqltype *t=e->type; |
| 223 | assert(t); |
| 224 | derived_table.columns().push_back(column(name.str(), t)); |
| 225 | } while (d6() > 1); |
| 226 | } |
| 227 | |
| 228 | void select_list::out(std::ostream &out) |
| 229 | { |