SQL7919 | |
---|---|
Message Text: | Data conversion required on FETCH or embedded SELECT. |
Cause Text: | Host variable &2 requires conversion. The data retrieved for the
FETCH or embedded SELECT statement cannot be directly moved to the host variables.
The statement ran correctly. Performance, however, would be improved if no
data conversion was required. The host variable requires conversion for reason &1
|
Recovery Text: | To get better performance, attempt to use host variables of the same type and length as their corresponding result columns. |
When mapping data to host variables, data conversions were required. When these statements are run in the future, they will be slower than if no data conversions were required. The statement ran successfully, but performance could be improved by eliminating the data conversion. For example, a data conversion that would cause this message to occur would be the mapping of a character string of a certain length to a host variable character string with a different length. You could also cause this error by mapping a numeric value to a host variable that is a different type (decimal to integer). To prevent most conversions, use host variables that are of identical type and length as the columns that are being fetched.