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::ValueTypes. This mapping is shown in the table Type mapping when retrieving data, which also gives the C++ datatype corresponding to theRWDBValue::ValueType. -
When creating tables, the DB Access Module for Oracle OCI maps the given
RWDBValue::ValueTypeinto an Oracle-specific type. This mapping is shown in the table Type mapping when creating tables.
The RWDBValue::ValueType, accessible through the type() method, is uniform across all Access Modules. For a complete explanation of the DB Interface Module data model, see The Data Model 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: