/ IsTypeNum: returns true for numeric types. */ /
| 247 | /* IsTypeNum: returns true for numeric types. */ |
| 248 | /***********************************************************************/ |
| 249 | bool 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. */ |
no outgoing calls
no test coverage detected