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.

Statement Class<br />

Syntax<br />

void setDate(unsigned int paramIndex,<br />

const Date &x);<br />

Parameters<br />

paramIndex<br />

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

x<br />

The parameter value.<br />

setDatabaseNCHARParam()<br />

setDataBuffer()<br />

If the parameter is going to be inserted in a column that contains data in the<br />

database’s NCHAR character set, then OCCI must be informed by passing a true<br />

value. A false can be passed to restore the dafault.Returns returns the character set<br />

that is in effect for the specified parameter.<br />

Syntax<br />

void setDatabaseNCHARParam(unsigned int paramIndex,<br />

bool isNCHAR);<br />

Parameters<br />

paramIndex<br />

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

isNCHAR<br />

True if this parameter contains data in Database’s NCHAR character set; false<br />

otherwise.<br />

Specify a data buffer where data would be available. Also, used for OUT bind<br />

parameters of callable statements (and DML returning OUT binds in future).<br />

The buffer parameter is a pointer to a user allocated data buffer. The current<br />

length of data must be specified in the *length parameter. The amount of data<br />

should not exceed the size parameter. Finally, type is the data type of the data.<br />

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