DB2 - Problembeschreibung
Problem IC62187 | Status: Geschlossen |
DB2LSNTOSTRING RETURNING ERROR 'OSS_PRI16X64' : UNDECLARED IDENTIFIER | |
Produkt: | |
DB2 FOR LUW / DB2FORLUW / 970 - DB2 | |
Problembeschreibung: | |
When attempting to use the db2LsnToString() API routine in a user created program, the compilation of the program will fail with an error stating that OSS_PRI16X64 is an undeclared identifier. The actual text of the error message will vary according to the compiler and platform used. The following is a Windows example produced by the Microsoft Visual Studio C compiler: error C2065: 'OSS_PRI16X64' : undeclared identifier Currently, db2LsnToString() API routine is defined in db2ApiDf.h in the following way: #define db2LsnToString(_inLsn, _outStr) \ sprintf(_outStr, OSS_PRI16X64, (_inLsn).lsnU64) The problem is that 'OSS_PRI16X64' is an internal DB2 symbol whose definition is not shipped. | |
Problem-Zusammenfassung: | |
see APAR | |
Local-Fix: | |
Redefine db2LsnToString() in the following way: #define db2LsnToString(_inLsn, _outStr) \ sprintf(_outStr, "%016X", (_inLsn).lsnU64) | |
verfügbare FixPacks: | |
DB2 Version 9.7 Fix Pack 1 for Linux, UNIX, and Windows | |
Lösung | |
Problem first fixed in DB2 UDB 9.7 FixPak 1 | |
Workaround | |
see APAR | |
Weitere Daten | |
Datum - Problem gemeldet : Datum - Problem geschlossen : Datum - der letzten Änderung: | 23.07.2009 22.12.2009 22.12.2009 |
Problem behoben ab folgender Versionen (IBM BugInfos) | |
9.7. | |
Problem behoben lt. FixList in der Version | |
9.7.0.1 |