OmniSciDB
a5dc49c757
|
#include <ParserNode.h>
Public Member Functions | |
RenameUserStmt (const rapidjson::Value &payload) | |
RenameUserStmt (std::string *username, std::string *new_username) | |
auto const & | getOldUserName () |
auto const & | getNewUserName () |
void | execute (const Catalog_Namespace::SessionInfo &session, bool read_only_mode) override |
Public Member Functions inherited from Parser::DDLStmt | |
void | setColumnDescriptor (ColumnDescriptor &cd, const ColumnDef *coldef) |
Public Member Functions inherited from Parser::Node | |
virtual | ~Node () |
Private Attributes | |
std::unique_ptr< std::string > | username_ |
std::unique_ptr< std::string > | new_username_ |
Definition at line 1309 of file ParserNode.h.
Parser::RenameUserStmt::RenameUserStmt | ( | const rapidjson::Value & | payload | ) |
Definition at line 5114 of file ParserNode.cpp.
References CHECK, json_str(), new_username_, and username_.
|
inline |
Definition at line 1312 of file ParserNode.h.
|
overridevirtual |
Implements Parser::DDLStmt.
Definition at line 5121 of file ParserNode.cpp.
References Catalog_Namespace::SessionInfo::get_currentUser(), lockmgr::instance(), Catalog_Namespace::UserMetadata::isSuper, new_username_, and username_.
Referenced by heavydb.cursor.Cursor::executemany().
|
inline |
Definition at line 1315 of file ParserNode.h.
References new_username_.
|
inline |
Definition at line 1314 of file ParserNode.h.
References username_.
|
private |
Definition at line 1321 of file ParserNode.h.
Referenced by execute(), getNewUserName(), and RenameUserStmt().
|
private |
Definition at line 1320 of file ParserNode.h.
Referenced by execute(), getOldUserName(), and RenameUserStmt().