Return precision and scale information for a regular result column of type numeric or decimal.
DBTYPEINFO * dbcoltypeinfo(dbproc, column) DBPROCESS *dbproc; int column;
A pointer to the DBPROCESS structure that provides the connection for a particular front-end/server process. It contains all the information that DB-Library uses to manage communications and data between the front end and server.
The number of the column of interest. The first column is number 1.
A pointer to a DBTYPEINFO structure that contains precision and scale values for a particular numeric or decimal column, or NULL if the specified column number is not in the result set.
A DBTYPEINFO structure is defined as follows:
typedef struct typeinfo {
DBINT precision;
DBINT scale;
} DBTYPEINFO;
If the datatype of the column is not numeric or decimal, the returned structure will contain meaningless values. Check that dbcoltype returns SYBNUMERIC or SYBDECIMAL before calling this function.
This routine returns a pointer to a DBTYPEINFO structure that provides precision and scale information for a regular (that is, non-compute) result column of datatype numeric or decimal.
The precision and scale values returned for columns with other datatypes will be meaningless. Check that dbcoltype returns SYBNUMERIC or SYBDECIMAL before calling dbcoltypeinfo.
dbcollen, dbcolname, dbcoltype, dbdata, dbdatlen, dbnumcols, dbprtype, dbvarylen, Types