10.12.2012 Views

Oracle C++ Call Interface Programmer's Guide

Oracle C++ Call Interface Programmer's Guide

Oracle C++ Call Interface Programmer's Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Attribute Reference<br />

Table 6–11 Attributes Belonging to Collection Types<br />

Attribute Description Attribute Datatype<br />

ATTR_DATA_SIZE Maximum size of the type<br />

attribute. This length is returned<br />

in bytes and not characters for<br />

strings and raws. Returns 22 for<br />

NUMBER.<br />

int<br />

ATTR_TYPECODE Typecode<br />

Refer to Notes on Types and<br />

Attributes on page 6-3.<br />

ATTR_DATA_TYPE The datatype of the type attribute<br />

Refer to Notes on Types and<br />

Attributes on page 6-3.<br />

ATTR_NUM_ELEMENTS Number of elements in an array.<br />

Only valid for collections that are<br />

arrays.<br />

ATTR_NAME A pointer to a string that is the<br />

type attribute name<br />

ATTR_PRECISION Precision of numeric type<br />

attributes. If the precision is<br />

nonzero and scale is -127, then it<br />

is a FLOAT; otherwise a<br />

NUMBER(p, s). If precision is 0,<br />

then NUMBER(p, s) can be<br />

represented simply as NUMBER.<br />

ATTR_SCALE Scale of numeric type attributes.<br />

If the precision is nonzero and<br />

scale is -127, then it is a FLOAT;<br />

otherwise a NUMBER(p, s). If<br />

precision is 0, then NUMBER(p, s)<br />

can be represented simply as<br />

NUMBER.<br />

ATTR_TYPE_NAME String that is the type name. The<br />

returned value will contain the<br />

type name if the datatype is<br />

SQLT_NTY or SQLT_REF. If the<br />

datatype is SQLT_NTY, then the<br />

name of the named datatype’s<br />

type is returned. If the datatype is<br />

SQLT_REF, then the type name of<br />

the named datatype pointed to<br />

by the REF is returned<br />

ATTR_SCHEMA_NAME String with the schema name<br />

under which the type has been<br />

created<br />

6-18 <strong>Oracle</strong> <strong>C++</strong> <strong>Call</strong> <strong>Interface</strong> Programmer’s <strong>Guide</strong><br />

int<br />

int<br />

unsigned int<br />

string<br />

int<br />

int<br />

string<br />

string

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!