skip to main content
Connection Property Descriptions : ConfigOptions : NumberFieldMapping (Configuration Option)
  

Try DataDirect Drivers Now

NumberFieldMapping (Configuration Option)

Purpose

Determines how the driver maps fields defined as NUMBER in Salesforce. The Salesforce API uses DOUBLE values to transfer data to and from NUMBER fields, which can cause problems when the precision of the NUMBER field is greater than the precision of a DOUBLE value. Rounding can occur when converting large values to and from DOUBLE. The NumberFieldMapping option allows you to map the NUMBER fields to the required SQL types based on their precision.

Valid Values

emulateInteger | alwaysDouble | alwaysDecimal

Behavior

If set to emulateInteger, the driver maps NUMBER fields with a precision of 9 or less and a scale of 0 to the INTEGER SQL type and maps all other NUMBER fields to the DOUBLE SQL type.
If set to alwaysDouble, the driver maps all NUMBER fields to the DOUBLE SQL type regardless of their precision.
If set to alwaysDecimal, the driver maps all NUMBER fields to the DECIMAL SQL type. It can be used when the precision of the NUMBER field is greater than the precision of a DOUBLE value.

Default

emulateInteger

See also

ConfigOptions