Precompilers and OCI (MOSC)

MOSC Banner

How to get number(20) to int64 in c++ from OCCI (not OCI) ?

edited Dec 12, 2011 5:16AM in Precompilers and OCI (MOSC) 4 commentsAnswered
Greetings
1. Came accross the following OTN threads which suggests, we can use OCI API and use OCINumber method - OCINumberFromInt but OCCI does not have equivalent function.

Oracle Technology Network (OTN) threads:

https://cn.forums.oracle.com/forums/thread.jspa?threadID=663724 -- This thread has the answer, there is a suggestion on writing custom code to convert OCCI_ConvertBytesToInt64

https://forums.oracle.com/forums/thread.jspa?threadID=421311&tstart=915&messageID=1456062

https://forums.oracle.com/forums/thread.jspa?threadID=517876


2. Existing OCCI does not have methods such as OCINumberFromInt. Only OCI has such methods.

2.1 There are couple of sample codes for OCINumber and OCINumberFromInt discussed at:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center