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.

ResultSet Class<br />

isNull()<br />

isTruncated()<br />

index<br />

The column index (the first column is 1, the second is 2, . . . . ).<br />

vect<br />

The reference to the vector of REFs (OUT parameter).<br />

It is recommened to use this function instead of specialized method getVector for<br />

Ref.<br />

A column may have the value of SQL null; wasNull() reports whether the last<br />

column read had this special value. Note that you must first call getxxx on a<br />

column to try to read its value and then call wasNull() to find if the value was the<br />

SQL null. Returns true if last column read was SQL null.<br />

Syntax<br />

bool isNull(unsigned int colIndex) const;<br />

Parameters<br />

colIndex<br />

The first column is 1, the second is 2, . . . .<br />

This method checks whether the value of the parameter is truncated. If the value of<br />

the parameter is truncated, then true is returned; otherwise, false is returned.<br />

Syntax<br />

bool isTruncated(unsigned int paramIndex) const;<br />

Parameters<br />

paramIndex<br />

The first parameter is 1, the second is 2, . . . .<br />

8-158 <strong>Oracle</strong> <strong>C++</strong> <strong>Call</strong> <strong>Interface</strong> Programmer’s <strong>Guide</strong>

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

Saved successfully!

Ooh no, something went wrong!