OmniSciDB  06b3bd477c
 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 728 of file ParserNode.h.

Member Function Documentation

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

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

3266  {
3267  bool not_null;
3268  const ColumnConstraintDef* cc = coldef->get_column_constraint();
3269  if (cc == nullptr) {
3270  not_null = false;
3271  } else {
3272  not_null = cc->get_notnull();
3273  }
3274  ddl_utils::set_column_descriptor(*coldef->get_column_name(),
3275  cd,
3276  coldef->get_column_type(),
3277  not_null,
3278  coldef->get_compression());
3279 }
void set_column_descriptor(const std::string &column_name, ColumnDescriptor &cd, SqlType *column_type, const bool not_null, const Encoding *encoding)
Definition: DdlUtils.cpp:492

+ Here is the call graph for this function:


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