MCPcopy Create free account
hub / github.com/MariaDB/server / GetTypeName

Function GetTypeName

storage/connect/value.cpp:142–161  ·  view source on GitHub ↗

/ GetTypeName: returns the PlugDB internal type name. */ /

Source from the content-addressed store, hash-verified

140/* GetTypeName: returns the PlugDB internal type name. */
141/***********************************************************************/
142PCSZ GetTypeName(int type)
143{
144 PCSZ name;
145
146 switch (type) {
147 case TYPE_STRING: name = "CHAR"; break;
148 case TYPE_SHORT: name = "SMALLINT"; break;
149 case TYPE_INT: name = "INTEGER"; break;
150 case TYPE_BIGINT: name = "BIGINT"; break;
151 case TYPE_DATE: name = "DATE"; break;
152 case TYPE_DOUBLE: name = "DOUBLE"; break;
153 case TYPE_TINY: name = "TINY"; break;
154 case TYPE_DECIM: name = "DECIMAL"; break;
155 case TYPE_BIN: name = "BINARY"; break;
156 case TYPE_PCHAR: name = "PCHAR"; break;
157 default: name = "UNKNOWN"; break;
158 } // endswitch type
159
160 return name;
161} // end of GetTypeName
162
163/***********************************************************************/
164/* GetTypeSize: returns the PlugDB internal type size. */

Callers 15

TabColumnsFunction · 0.85
DBFColumnsFunction · 0.85
SetBufferMethod · 0.85
SetValue_charMethod · 0.85
WMIColumnsFunction · 0.85
MGOColumnsFunction · 0.85
VirColumnsFunction · 0.85
CSVColumnsFunction · 0.85
SetBufferMethod · 0.85
XMLColumnsFunction · 0.85
tabxml.cppFile · 0.85
SetBufferMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected