rtypmsize()

Returns the size in bytes required for a specified data type.

Syntax

mint rtypmsize(mint datatype, mint length)
  1. datatype is an integer code defining the data type.
  2. length is the number of bytes in the data file for the specified type.

Returns

Table 1. Return codes
Code Description
0 The datatype is not a valid SQL type.
>0 The return value is the number of bytes that the data type requires.

Usage

The datatype must be one of the data type constants defined in fglExt.h.