Oracle Objects for OLE C++ Class Library
Release 9.0.1

Part Number A90172-01

Home

Book List

Contents

Master Index

Feedback

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

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.


 
Oracle
Copyright © 1996-2001, Oracle Corporation.

All Rights Reserved.

Home

Book List

Contents