| 438 | } |
| 439 | |
| 440 | static String getTableExpressionAlias(const ASTTableExpression * table_expression) |
| 441 | { |
| 442 | if (table_expression->subquery) |
| 443 | return table_expression->subquery->tryGetAlias(); |
| 444 | if (table_expression->table_function) |
| 445 | return table_expression->table_function->tryGetAlias(); |
| 446 | if (table_expression->database_and_table_name) |
| 447 | return table_expression->database_and_table_name->tryGetAlias(); |
| 448 | |
| 449 | return String(); |
| 450 | } |
| 451 | |
| 452 | void ASTSelectQuery::replaceDatabaseAndTable(const String & database_name, const String & table_name) |
| 453 | { |
no test coverage detected