OmniSciDB
a5dc49c757
|
#include <ParserNode.h>
Public Member Functions | |
AddColumnStmt (std::string *tab, ColumnDef *coldef) | |
AddColumnStmt (std::string *tab, std::list< ColumnDef * > *coldefs) | |
void | execute (const Catalog_Namespace::SessionInfo &session, bool read_only_mode) override |
void | check_executable (const Catalog_Namespace::SessionInfo &session, const TableDescriptor *td) |
const std::string * | get_table () const |
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 > | table_ |
std::unique_ptr< ColumnDef > | coldef_ |
std::list< std::unique_ptr < ColumnDef > > | coldefs_ |
Definition at line 1358 of file ParserNode.h.
|
inline |
Definition at line 1360 of file ParserNode.h.
|
inline |
Definition at line 1361 of file ParserNode.h.
References coldefs_.
void Parser::AddColumnStmt::check_executable | ( | const Catalog_Namespace::SessionInfo & | session, |
const TableDescriptor * | td | ||
) |
Definition at line 5373 of file ParserNode.cpp.
References Parser::check_alter_table_privilege(), coldef_, coldefs_, Catalog_Namespace::SessionInfo::getCatalog(), TableDescriptor::isView, ddl_utils::TABLE, table_, table_is_temporary(), TableDescriptor::tableId, and ddl_utils::validate_table_type().
Referenced by execute().
|
overridevirtual |
Implements Parser::DDLStmt.
Definition at line 5403 of file ParserNode.cpp.
References anonymous_namespace{Utm.h}::a, CHECK, check_executable(), Executor::clearExternalCaches(), coldefs_, ColumnDescriptor::columnId, ColumnDescriptor::columnName, ColumnDescriptor::columnType, TableDescriptor::fragmenter, Catalog_Namespace::SessionInfo::getCatalog(), legacylockmgr::getExecuteWriteLock(), Geospatial::GeoTypesFactory::getGeoColumns(), SQLTypeInfo::is_geometry(), is_null(), TableDescriptor::nShards, import_export::Importer::set_geo_physical_import_buffer(), Parser::DDLStmt::setColumnDescriptor(), gpu_enabled::sort(), table_, and TableDescriptor::tableId.
Referenced by heavydb.cursor.Cursor::executemany().
|
inline |
|
private |
Definition at line 1375 of file ParserNode.h.
Referenced by check_executable().
|
private |
Definition at line 1376 of file ParserNode.h.
Referenced by AddColumnStmt(), check_executable(), and execute().
|
private |
Definition at line 1374 of file ParserNode.h.
Referenced by check_executable(), execute(), and get_table().