OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
anonymous_namespace{ConstantIR.cpp} Namespace Reference

Functions

SQLTypes get_phys_int_type (const size_t byte_sz)
 

Function Documentation

SQLTypes anonymous_namespace{ConstantIR.cpp}::get_phys_int_type ( const size_t  byte_sz)

Definition at line 121 of file ConstantIR.cpp.

References CHECK, kBIGINT, kINT, kNULLT, kSMALLINT, and kTINYINT.

121  {
122  switch (byte_sz) {
123  case 1:
124  return kTINYINT;
125  case 2:
126  return kSMALLINT;
127  case 4:
128  return kINT;
129  case 8:
130  return kBIGINT;
131  default:
132  CHECK(false);
133  }
134  return kNULLT;
135 }
#define CHECK(condition)
Definition: Logger.h:291
Definition: sqltypes.h:72