OmniSciDB  5ade3759e0
sql_type_to_string.h File Reference
#include "sqltypes.h"
#include <string>
+ Include dependency graph for sql_type_to_string.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

std::string sql_type_to_str (const SQLTypes &type)
 

Function Documentation

◆ sql_type_to_str()

std::string sql_type_to_str ( const SQLTypes type)
inline

Definition at line 23 of file sql_type_to_string.h.

References kARRAY, kBIGINT, kBOOLEAN, kCHAR, kDATE, kDECIMAL, kDOUBLE, kEVAL_CONTEXT_TYPE, kFLOAT, kGEOGRAPHY, kGEOMETRY, kINT, kINTERVAL_DAY_TIME, kINTERVAL_YEAR_MONTH, kLINESTRING, kMULTIPOLYGON, kNULLT, kNUMERIC, kPOINT, kPOLYGON, kSMALLINT, kTEXT, kTIME, kTIMESTAMP, kTINYINT, and kVARCHAR.

Referenced by Analyzer::Constant::toString().

23  {
24  switch (type) {
25  case kNULLT:
26  return "NULL";
27  case kBOOLEAN:
28  return "BOOL";
29  case kCHAR:
30  return "CHAR";
31  case kVARCHAR:
32  return "VARCHAR";
33  case kNUMERIC:
34  return "NUMERIC";
35  case kDECIMAL:
36  return "DECIMAL";
37  case kINT:
38  return "INT";
39  case kSMALLINT:
40  return "SMALLINT";
41  case kFLOAT:
42  return "FLOAT";
43  case kDOUBLE:
44  return "DOUBLE";
45  case kTIME:
46  return "TIME";
47  case kTIMESTAMP:
48  return "TIMESTAMP";
49  case kBIGINT:
50  return "BIGINT";
51  case kTEXT:
52  return "TEXT";
53  case kDATE:
54  return "DATE";
55  case kARRAY:
56  return "ARRAY";
57  case kINTERVAL_DAY_TIME:
58  return "DAY TIME INTERVAL";
60  return "YEAR MONTH INTERVAL";
61  case kPOINT:
62  return "POINT";
63  case kLINESTRING:
64  return "LINESTRING";
65  case kPOLYGON:
66  return "POLYGON";
67  case kMULTIPOLYGON:
68  return "MULTIPOLYGON";
69  case kTINYINT:
70  return "TINYINT";
71  case kGEOMETRY:
72  return "GEOMETRY";
73  case kGEOGRAPHY:
74  return "GEOGRAPHY";
75  case kEVAL_CONTEXT_TYPE:
76  return "UNEVALUATED ANY";
77  default:
78  return "INVALID";
79  }
80 }
Definition: sqltypes.h:51
Definition: sqltypes.h:54
Definition: sqltypes.h:55
Definition: sqltypes.h:43
Definition: sqltypes.h:47
+ Here is the caller graph for this function: