Datatypes
The classes RWDBColumn and RWDBValue have an associated RWDBValue::ValueType
that specifies the datatype of the database column or field being referenced. Mapping between this datatype and the database vendor type runs in both directions:
When fetching data or retrieving information about tables, the DB Access Module for Oracle OCI converts the Oracle-specific datatype information provided by the database into RWDBValue::ValueType
s. This mapping is shown in Table 1, which also gives the C++ datatype corresponding to the RWDBValue::ValueType
.
When creating tables, the DB Access Module for Oracle OCI maps the given RWDBValue::ValueType
into an Oracle-specific type. This mapping is shown in Table 2.
The RWDBValue::ValueType
s, accessible through the type()
method, are uniform across all Access Modules. For a complete explanation of the DB Interface Module data model, see Chapter 7, “The Data Model,” in the DB Interface Module User’s Guide, and RWDBValue in the SourcePro API Reference.
Oracle Datatype |
RWDBValue::ValueType |
C++ Datatype |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RWDBValue::ValueType |
Oracle Datatype |
|
|
|
|
|
|
|
|
|
|
|
|
|
Not supported by DB Access Module for Oracle OCI. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
If |
In this section: