1 | #include "duckdb/parser/tableref/basetableref.hpp" |
---|---|
2 | #include "duckdb/parser/transformer.hpp" |
3 | |
4 | using namespace duckdb; |
5 | using namespace std; |
6 | |
7 | unique_ptr<TableRef> Transformer::TransformRangeVar(PGRangeVar *root) { |
8 | auto result = make_unique<BaseTableRef>(); |
9 | |
10 | result->alias = TransformAlias(root->alias); |
11 | if (root->relname) |
12 | result->table_name = root->relname; |
13 | if (root->schemaname) |
14 | result->schema_name = root->schemaname; |
15 | return move(result); |
16 | } |
17 |