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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Table 6–14 Attributes Belonging to Columns of Tables or Views (Cont.)<br />

Attribute Description Attribute Datatype<br />

ATTR_IS_NULL The precision of numeric<br />

columns. 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 />

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

simply as NUMBER.<br />

ATTR_TYPE_NAME Scale of numeric columns. If the<br />

precision is nonzero and scale is<br />

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

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

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

s) can be represented simply as<br />

NUMBER.<br />

ATTR_SCHEMA_NAME Returns 0 if null values are not<br />

permitted for the column<br />

ATTR_REF_TDO Returns a string that is the type<br />

name. The returned value will<br />

contain the type name if the<br />

datatype is SQLT_NTY or SQLT_<br />

REF. If the datatype is SQLT_<br />

NTY, then the name of the named<br />

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

datatype is SQLT_REF, then the<br />

type name of the named datatype<br />

pointed to by the REF is returned<br />

ATTR_CHARSET_ID Returns a string with the schema<br />

name under which the type has<br />

been created<br />

ATTR_CHARSET_FORM The REF of the TDO for the type,<br />

if the column type is an object<br />

type<br />

Argument and Result Attributes<br />

bool<br />

string<br />

string<br />

RefAny<br />

Attribute Reference<br />

A parameter for an argument or a procedure or function type (type PTYPE_ARG),<br />

for a type method argument (type PTYPE_TYPE_ARG), or for method results (type<br />

PTYPE_TYPE_RESULT) has the attributes described in Table 6–15.<br />

Table 6–15 Attributes Belonging to Arguments / Results<br />

Attribute Description Attribute Datatype<br />

ATTR_NAME Returns a pointer to a string which is the<br />

argument name<br />

string<br />

int<br />

int<br />

Metadata 6-21

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

Saved successfully!

Ooh no, something went wrong!