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.

setCharSet()<br />

ResultSet Class<br />

Overrides the default character set for the specified column. Data is converted from<br />

the database character set to the specified character set for this column.<br />

Syntax<br />

void setCharSet(unsigned int colIndex,<br />

string charSet);<br />

Parameters<br />

colIndex<br />

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

charSet<br />

Desired character set, as a string.<br />

setDatebaseNCHARParam()<br />

setDataBuffer()<br />

If the parameter is going to be retrieved from 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 default.<br />

Syntax<br />

void setDatabaseNCHARParam( unsigned int paramIndex,<br />

bool isNCHAR);<br />

Parameters<br />

paramIndex<br />

Parameter index.<br />

isNCHAR<br />

TRUE/FALSE.<br />

Specify a data buffer where data would be fetched. The buffer parameter is a<br />

pointer to a user allocated data buffer. The current length of data must be specified<br />

OCCI Classes and Methods 8-161

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

Saved successfully!

Ooh no, something went wrong!