The ifx_lo_seek() function
The ifx_lo_seek() function sets the file position for the next read or write operation on an open smart large object.
Syntax
ifx_lo_seek(lofd, offset, whence, seek_pos)
Arguments
The function accepts the following
arguments.
Argument | Type | Use | Description |
---|---|---|---|
lofd | SQL_INTEGER | Input | Smart-large-object file descriptor |
offset | SQL_BIGINT | Input | Offset from the starting seek position, in bytes. Instead of using the default HCL OneDB™ ODBC Driver C data type of SQL_C_CHAR for offset, use SQL_C_LONG or SQL_C_SHORT. |
whence | SQL_INTEGER | Input | Starting seek position. The possible values are:
|
seek_pos | SQL_BIGINT | I/O | New seek position. Instead of using the default HCL OneDB ODBC Driver C data type of SQL_C_CHAR for seek_pos, use SQL_C_LONG. For more information, see The SQL_BIGINT data type. |
Usage
The ifx_lo_seek() function sets the seek position of lofd to the position that the offset and whence arguments indicate.