mi_integer mi_lo_colinfo_by_ids(conn, row_desc, column_id, LO_spec) MI_CONNECTION *conn; MI_ROW *row_desc; mi_integer column_id; MI_LO_SPEC *LO_spec;
A pointer to a connection descriptor established by a previous call to mi_open( ), mi_server_connect( ), or mi_server_reconnect( )
A NULL-valued pointer (database server only)
Valid in Client LIBMI Application? | Valid in User-Defined Routine? |
---|---|
No | Yes |
The mi_lo_colinfo_by_ids( ) function sets the fields of the LO-specification structure that LO_spec references to the storage characteristics for a specified column. Identify this column with the following arguments:
If this specified column does not have column-level storage characteristics defined for it, the database server uses the storage characteristics that are inherited.
The mi_lo_colinfo_by_ids( ) function is primarily intended for use within the assign( ) or import support routines of an opaque data type that contains a smart large object. Within either of these support functions, the database server guarantees that the associated row and the column information can be determined from the MI_FPARAM structure with the accessor functions, mi_fp_getrow( ) and mi_fp_getcolid( ). This function also works for any user-defined routine that is named or directly used in an INSERT, UPDATE, or SELECT statement. In all other contexts, the database server does not guarantee that the row and column information in the MI_FPARAM structure is valid.
The mi_lo_colinfo_by_ids( ) function does not need a connection descriptor to execute. If your UDR does not need a valid connection for other operations, you can specify a NULL-valued pointer for the conn parameter to establish a NULL connection. For information on the advantages of a NULL connection, see the IBM Informix: DataBlade API Programmer's Guide.
See also the descriptions of mi_fp_getcolid( ), mi_fp_getrow( ), mi_lo_colinfo_by_name( ) and mi_lo_spec_init( ).