| 37 | } |
| 38 | |
| 39 | ASTs ASTSelectIntersectExceptQuery::getListOfSelects() const |
| 40 | { |
| 41 | /** |
| 42 | * Because of normalization actual number of selects is 2. |
| 43 | * But this is checked in InterpreterSelectIntersectExceptQuery. |
| 44 | */ |
| 45 | ASTs selects; |
| 46 | for (const auto & child : children) |
| 47 | { |
| 48 | if (typeid_cast<ASTSelectQuery *>(child.get()) |
| 49 | || typeid_cast<ASTSelectWithUnionQuery *>(child.get()) |
| 50 | || typeid_cast<ASTSelectIntersectExceptQuery *>(child.get())) |
| 51 | selects.push_back(child); |
| 52 | } |
| 53 | return selects; |
| 54 | } |
| 55 | |
| 56 | const char * ASTSelectIntersectExceptQuery::fromOperator(Operator op) |
| 57 | { |
no test coverage detected