#include <ParserNode.h>
Definition at line 1241 of file ParserNode.h.
Parser::RenameColumnStmt::RenameColumnStmt |
( |
std::string * |
tab, |
|
|
std::string * |
col, |
|
|
std::string * |
new_col_name |
|
) |
| |
|
inline |
Definition at line 1243 of file ParserNode.h.
std::unique_ptr< std::string > table
std::unique_ptr< std::string > new_column_name
std::unique_ptr< std::string > column
Implements Parser::DDLStmt.
Definition at line 3407 of file ParserNode.cpp.
References Parser::check_alter_table_privilege(), Catalog_Namespace::SessionInfo::getCatalog(), reserved_keywords, and TableDescriptor::tableId.
3410 if (td ==
nullptr) {
3411 throw std::runtime_error(
"Table " + *
table +
" does not exist.");
3415 if (cd ==
nullptr) {
3416 throw std::runtime_error(
"Column " + *
column +
" does not exist.");
3419 throw std::runtime_error(
"Column " + *
new_column_name +
" already exists.");
3423 throw std::runtime_error(
"Cannot create column with reserved keyword '" +
static std::set< std::string > reserved_keywords
std::unique_ptr< std::string > table
std::unique_ptr< std::string > new_column_name
specifies the content in-memory of a row in the column metadata table
void check_alter_table_privilege(const Catalog_Namespace::SessionInfo &session, const TableDescriptor *td)
Catalog & getCatalog() const
std::unique_ptr< std::string > column
specifies the content in-memory of a row in the table metadata table
std::unique_ptr<std::string> Parser::RenameColumnStmt::column |
|
private |
std::unique_ptr<std::string> Parser::RenameColumnStmt::new_column_name |
|
private |
std::unique_ptr<std::string> Parser::RenameColumnStmt::table |
|
private |
The documentation for this class was generated from the following files:
- /home/jenkins-slave/workspace/core-os-doxygen/Parser/ParserNode.h
- /home/jenkins-slave/workspace/core-os-doxygen/Parser/ParserNode.cpp