Return the user-defined datatype for a compute column.
DBINT dbaltutype(dbproc, computeid, column) DBPROCESS *dbproc; int computeid; 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 ID that identifies the particular compute row of interest. A SQL select statement may have multiple compute clauses, each of which returns a separate compute row. The computeid corresponding to the first compute clause in a select is 1. The computeid is returned by dbnextrow or dbgetrow.
The number of the column of interest. The first column is number 1.
The user-defined datatype of the specified compute column on success; a negative integer on error.
dbaltutype returns the user-defined datatype for a compute column.
For a description of how to add user-defined datatypes to the server databases or Server-Library programs, see the Adaptive Server Enterprise Reference Manual or the Open Server Server-Library/C Reference Manual.
dbaltutype is defined as type DBINT, since both the DB-Library datatype DBINT and user-defined datatypes are 32 bits long.