Skip Headers
Oracle® Objects for OLE C++ Class Library Developer's Guide
10g Release 2 (10.2)

Part Number B14308-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Contact Us

GetFieldServerSize Method

Applies To

ODynaset

Description

This method returns the length of a long or long raw field as stored on the server.

Usage

long GetFieldServerSize(int index) const

long GetFieldServerSize(const char *fieldname) const

Arguments

Arguments
Description
index the 0-based index of the field. The index is the position of the field in the SQL query that created the current record set.
fieldname the name of the field, as expressed in the SQL query

Remarks

This routine is used to obtain the size of long (server type OTYPE_LONG) and long raw (server type OTYPE_LONGRAW) fields as stored on the server.

If this is a long field and the size is larger than 64K, this routine returns -1.

For fields that are neither long nor long raw, this routine will return a 0. To get the size of these fields as stored on the client, use GetFieldSize.

Return Value

The size of the field; 0 on error.