OmniSciDB  7bf56492aa
 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 726 of file ParserNode.h.

Member Function Documentation

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

Definition at line 3073 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().

3073  {
3074  bool not_null;
3075  const ColumnConstraintDef* cc = coldef->get_column_constraint();
3076  if (cc == nullptr) {
3077  not_null = false;
3078  } else {
3079  not_null = cc->get_notnull();
3080  }
3081  ddl_utils::set_column_descriptor(*coldef->get_column_name(),
3082  cd,
3083  coldef->get_column_type(),
3084  not_null,
3085  coldef->get_compression());
3086 }
void set_column_descriptor(const std::string &column_name, ColumnDescriptor &cd, SqlType *column_type, const bool not_null, const Encoding *encoding)
Definition: DdlUtils.cpp:490

+ Here is the call graph for this function:


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