DB2 - Problembeschreibung
| Problem IT06107 | Status: Geschlossen |
ROUND AND TRUNCATE FUNCTIONS WITH DB2_COMPATIBILTY_VECTOR=ORA GIVES EXPONENT RESULT FORM FOR CALCULATION. | |
| Produkt: | |
DB2 FOR LUW / DB2FORLUW / A50 - DB2 | |
| Problembeschreibung: | |
When using Oracle application number mode semantics via
DB2_COMPATIBILTY_VECTOR
settings of:
ORA (enable full Oracle compatibility)
0x10 (enable only Oracle number mode semantics)
The ROUND FUNCTION incorrectly converts the output to normalized
exponent form:
db2 select round(3344*3/23*3,-1) from sysibm.sysdummy1
1
------------------------------------------
1.31E+3
The correct format in the above example should be:
1310
The TRUNCATE function also has the same issue. | |
| Problem-Zusammenfassung: | |
**************************************************************** * USERS AFFECTED: * * ALL * **************************************************************** * PROBLEM DESCRIPTION: * * See Error Description * **************************************************************** * RECOMMENDATION: * * Upgrade to DB2 Version 10.5 Fix Pack 7. * **************************************************************** | |
| Local-Fix: | |
Cast calculation with INT : round(INT(3344*3/23*3),-1) | |
| Lösung | |
First fixed in Version 10.5 Fix Pack 7. | |
| Workaround | |
keiner bekannt / siehe Local-Fix | |
| Weitere Daten | |
Datum - Problem gemeldet : Datum - Problem geschlossen : Datum - der letzten Änderung: | 16.12.2014 25.01.2016 28.04.2016 |
| Problem behoben ab folgender Versionen (IBM BugInfos) | |
| Problem behoben lt. FixList in der Version | |
| 10.5.0.7 |
|