piece_len
The length of this segment of the parameter. This is less than or equal to total_len.
total_len
The total length of the parameter. For strings, this represents the length of the string and does not include a null
terminator. This property is set after a call to the get_value callback function. This property is no longer valid after a call to the get_piece callback function.
remain_len
When the parameter is obtained in segments, this is the length of the part that has not yet been obtained. This property
is set after each call to the get_piece callback function.
type
Indicates the type of the parameter. This is one of the Embedded SQL data types such as DT_INT, DT_FIXCHAR, or DT_BINARY. See Embedded SQL data types.
Suppose that your external function interface was described using the following SQL statement.
CREATE FUNCTION mystring( IN instr LONG VARCHAR )
RETURNS LONG VARCHAR
EXTERNAL NAME 'mystring@c:\\project\\mystring.dll';
The following code fragment shows how to access the properties for objects of type an_extfn_value. In the example, the input parameter 1 (instr) to this function (mystring) is expected to be a SQL LONGVARCHAR string.