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.

Statement Class<br />

setDouble()<br />

setErrorOnNull()<br />

Set a parameter to a <strong>C++</strong> double value.<br />

Syntax<br />

void setDouble(unsigned int paramIndex,<br />

double x);<br />

Parameters<br />

paramIndex<br />

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

x<br />

The parameter value.<br />

Enables/disables exceptions for reading of null values on paramIndex parameter of<br />

the statement. If exceptions are enabled, calling a getxxx on paramIndex<br />

parameter would result in an SQLException if the parameter value is null. This<br />

call can also be used to disable exceptions.<br />

Syntax<br />

void setErrorOnNUll(unsigned int paramIndex,<br />

bool causeException);<br />

Parameters<br />

setErrorOnTruncate()<br />

paramIndex<br />

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

causeExcetpion<br />

Enable exceptions if true, disable if false<br />

This method enables/disables exceptions when truncation occurs.<br />

8-198 <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!