GetServerType Method

Applies To

OField

OParameter

Description

This method returns the Oracle type of the database field or parameter.

Usage

short GetServerType(void) const

Remarks

Every column in an Oracle database and every column computed in a SQL statement has a type. This method returns the type of the field. It will have one of the following values:

OTYPE_VARCHAR2
Varchar2, variable length character.
OTYPE_NUMBER
Numeric field.
OTYPE_LONG
Long text (> 2000 bytes).
OTYPE_ROWID
Oracle rowid.
OTYPE_DATE
A date.
OTYPE_RAW
Raw bytes.
OTYPE_LONGRAW
Long blob of bytes (generally > 255 bytes).
OTYPE_CHAR
Fixed-length text.
OTYPE_MSLABEL
Special type for Trusted Oracle.
OTYPE_CURSOR
PL/SQL cursor type

For more information on these types consult the Oracle SQL Language Reference Manual.

Return Value

The type of the field, or 0 on error.