OmniSciDB  bf83d84833
 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 3455 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().

3455  {
3456  bool not_null;
3457  const ColumnConstraintDef* cc = coldef->get_column_constraint();
3458  if (cc == nullptr) {
3459  not_null = false;
3460  } else {
3461  not_null = cc->get_notnull();
3462  }
3463  ddl_utils::set_column_descriptor(*coldef->get_column_name(),
3464  cd,
3465  coldef->get_column_type(),
3466  not_null,
3467  coldef->get_compression());
3468 }
void set_column_descriptor(const std::string &column_name, ColumnDescriptor &cd, SqlType *column_type, const bool not_null, const Encoding *encoding)
Definition: DdlUtils.cpp:493

+ Here is the call graph for this function:

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