Informix Error -11278: Fractional truncation.
Cause and resolution
Fractional truncation.
This Informix ODBC error code is the same as SQLSTATE value 01S07. The following functions can return this error code: SQLExecDirect, SQLExecute, SQLExtendedFetch, SQLFetch, SQLFetchScroll, SQLGetData, and SQLSetPos
For SQLExecDirect, SQLExecute, SQLExtendedFetch, SQLFetch, SQLFetchScroll, and SQLGetData, the data returned for an input/output or output parameter was truncated such that the fractional part of a numeric data type was truncated or the fractional portion of the time component of a time, timestamp, or interval data type was truncated.
For SQLSetPos, the Operation argument was SQL_REFRESH, the data type of the application buffer was not SQL_C_CHAR or SQL_C_BINARY, and the data returned to application buffers for one or more columns was truncated. For numeric data types, the fractional part of the number was truncated. For time, timestamp, and interval data types that contain a time component, the fractional portion of the time was truncated.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-11278 fires when a fractional numeric or time component is truncated in returned
parameter/column data — per the official guidance, this is the same as SQLSTATE value
01S07, returnable by SQLExecDirect, SQLExecute, SQLExtendedFetch, SQLFetch,
SQLFetchScroll, SQLGetData, and SQLSetPos.
- The fractional part of a numeric data type being truncated, per the official guidance — the first named case.
- The fractional (sub-second) portion of a time/timestamp/interval data type being truncated, per the official guidance — the second named case.
Solutions / Resolution
- Use a buffer/data type with enough precision to hold the fractional part, per the official guidance's implication.
Examples
N/A
No specific triggering statement is documented beyond truncated fractional data.
Diagnostic Checks
- Check the target buffer/column's precision, and confirm it can represent the fractional part of the value being returned.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -11278 in this set yet.
A fractional numeric or time value was truncated on return — check the target's precision.