Oracle Objects for OLE C++ Class Library
Release 9.2

Part Number A95896-01
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
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
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.


 
Oracle
Copyright © 1998, 2002 Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents

Master Index

Feedback