INFORMIX
DataBlade API Programmer's Manual
Chapter 12: DataBlade API Function Descriptions
Home Contents Index Master Index New Book

mi_lo_colinfo_by_ids()

The mi_lo_colinfo_by_ids() function sets the fields of an LO-specification structure to the column-level storage characteristics for specified row descriptor and column identifier.

Syntax

Usage

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. Within either of these support functions, the data type system guarantees that the 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 data type system does not guarantee that the row and column information in the MI_FPARAM structure is valid.

Return Values

MI_OK

The function was successful; LO_spec points to the LO-
specification structure with the storage characteristics of the specified column.

MI_ERROR

The function was not successful.

Related Topics

See the descriptions of the following functions: mi_lo_colinfo_by_name() and mi_lo_spec_init().

In Chapter 3, "Handling Smart Large Objects," see "Choosing Storage Characteristics".




DataBlade API Programmer's Manual, version 9.1
Copyright © 1998, Informix Software, Inc. All rights reserved.