DecimalFloatDefaultDescribeMapping IBM data server driver configuration keyword
Specifies the default C type and reported data type of DECFLOAT columns and parameter markers.
- Equivalent CLI keyword
- MapDecimalFloatDescribe
- Equivalent IBM® Data Server Provider for .NET connection string keyword
- N/A
- db2dsdriver.cfg configuration syntax
<parameter name="DecimalFloatDefaultDescribeMapping" value="0 | 1| 2| 3"/>
- Default setting:
- 0
- Usage notes:
-
DecimalFloatDefaultDescribeMapping controls the default C type to be used for columns and parameters with a data type of DECFLOAT. It affects the behavior of functions for which SQL_C_DEFAULT can be specified as the C type of a column or parameter. Examples of such functions include
SQLBindParameter()
,SQLBindCol()
, andSQLGetData()
,DecimalFloatDefaultDescribeMapping also controls the type that will be reported for columns and parameters that have a data type of DECFLOAT. This affects CLI functions that return information about parameters and columns. Examples of such functions include
SQLColAttribute()
andSQLDescribeParam()
.Use this configuration keyword for applications that cannot handle decimal float types or when you would rather always deal with decimal float types as some other type.
Here are the allowed values:Table 1. Value DECFLOAT columns and parameters are reported as being this type DECFLOAT columns and parameters use this default C type 0 SQL_DECFLOAT SQL_C_CHAR1 SQL_VARCHAR SQL_C_CHAR 2 SQL_WVARCHAR SQL_C_WCHAR 3 SQL_DOUBLE SQL_C_DOUBLE