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

Function IsTypeNum

storage/connect/value.cpp:249–264  ·  view source on GitHub ↗

/ IsTypeNum: returns true for numeric types. */ /

Source from the content-addressed store, hash-verified

247/* IsTypeNum: returns true for numeric types. */
248/***********************************************************************/
249bool IsTypeNum(int type)
250{
251 switch (type) {
252 case TYPE_INT:
253 case TYPE_BIGINT:
254 case TYPE_DATE:
255 case TYPE_DOUBLE:
256 case TYPE_SHORT:
257 case TYPE_NUM:
258 case TYPE_TINY:
259 case TYPE_DECIM:
260 return true;
261 } // endswitch type
262
263 return false;
264} // end of IsTypeNum
265
266/***********************************************************************/
267/* GetFmt: returns the format to use with a typed value. */

Callers 2

ConvertTypeFunction · 0.70
SetValue_pvblkMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected