suche 36x36
Latest versionsfixlist
11.1.0.7 FixList
10.5.0.9 FixList
10.1.0.6 FixList
9.8.0.5 FixList
9.7.0.11 FixList
9.5.0.10 FixList
9.1.0.12 FixList
Have problems? - contact us.
Register for free anmeldung-x26
Contact form kontakt-x26

DB2 - Problem description

Problem IT26818 Status: Closed

UNQUALIFIED SCALAR FUNCTION TRUNCATE MAY INCORRECTLY RESOLVE TO
SYSFUN.TRUNCATE

product:
DB2 FOR LUW / DB2FORLUW / A50 - DB2
Problem description:
An unqualified reference to scalar function TRUNCATE with 2
arguments incorrectly resolves to SYSFUN.TRUNCATE instead of
SYSIBM.TRUNCATE when the first argument is a numeric data type
other than DECFLOAT, and the second argument is a string.  As a
consequence, the resulting datatype may not be as expected.  For
example:

TRUNCATE(DECIMAL, VARCHAR)

resolves to SYSFUN.TRUNCATE(FLOAT, INTEGER) and returns FLOAT.
The expected result is that it should resolve to
SYSIBM.TRUNCATE(DECIMAL,INTEGER) and return a DECIMAL result.

The same applies to the synonym TRUNC.
Problem Summary:
****************************************************************
* USERS AFFECTED:                                              *
* ALL                                                          *
****************************************************************
* PROBLEM DESCRIPTION:                                         *
* See Error Description                                        *
****************************************************************
* RECOMMENDATION:                                              *
* Uprade to Db2 version 11.1                                   *
****************************************************************
Local Fix:
Explicitly qualify the function with SYSIBM.
Solution
Workaround
not known / see Local fix
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
31.10.2018
01.11.2018
01.11.2018
Problem solved at the following versions (IBM BugInfos)
Problem solved according to the fixlist(s) of the following version(s)