OmniSciDB  8fa3bf436f
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Parser::DDLStmt Class Referenceabstract

#include <ParserNode.h>

+ Inheritance diagram for Parser::DDLStmt:
+ Collaboration diagram for Parser::DDLStmt:

Public Member Functions

virtual void execute (const Catalog_Namespace::SessionInfo &session)=0
 
void setColumnDescriptor (ColumnDescriptor &cd, const ColumnDef *coldef)
 
- Public Member Functions inherited from Parser::Node
virtual ~Node ()
 

Detailed Description

Definition at line 732 of file ParserNode.h.

Member Function Documentation

void Parser::DDLStmt::setColumnDescriptor ( ColumnDescriptor cd,
const ColumnDef coldef 
)

Definition at line 4053 of file ParserNode.cpp.

References Parser::ColumnDef::get_column_constraint(), Parser::ColumnDef::get_column_name(), Parser::ColumnDef::get_column_type(), Parser::ColumnDef::get_compression(), Parser::ColumnConstraintDef::get_notnull(), and ddl_utils::set_column_descriptor().

4053  {
4054  bool not_null;
4055  const ColumnConstraintDef* cc = coldef->get_column_constraint();
4056  if (cc == nullptr) {
4057  not_null = false;
4058  } else {
4059  not_null = cc->get_notnull();
4060  }
4061  ddl_utils::set_column_descriptor(*coldef->get_column_name(),
4062  cd,
4063  coldef->get_column_type(),
4064  not_null,
4065  coldef->get_compression());
4066 }
void set_column_descriptor(const std::string &column_name, ColumnDescriptor &cd, SqlType *column_type, const bool not_null, const Encoding *encoding)
Definition: DdlUtils.cpp:509

+ Here is the call graph for this function:


The documentation for this class was generated from the following files: