home clear 64x64
en blue 200x116 de orange 200x116 info letter User
suche 36x36
Neueste VersionenFixList
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
Haben Sie Probleme? - Kontaktieren Sie uns.
Kostenlos registrieren anmeldung-x26
Kontaktformular kontakt-x26

DB2 - Problembeschreibung

Problem IC75127 Status: Geschlossen

SQL0214N RC=2 MAYBE RECIEVED IF USING EXPRESSION IN THE ORDER BY CLAUSE.

Produkt:
DB2 FOR LUW / DB2FORLUW / 970 - DB2
Problembeschreibung:
Using expressions such as TO_CHAR, VARCHAR_FORMAT, DATE, TIME, 
TIMESTAMP, TIMESTAMP_FORMAT, TO_DATE, in the order by 
clause even though they are part of the select list. 
. 
For example: 
. 
db2 "create table test1(id int, mytime timestamp)" 
. 
db2 "insert into test1 values(1, '0001-01-01-00.00.00.000000')" 
db2 "insert into test1 values(2, '0002-02-02-00.00.00.000000')" 
db2 "insert into test1 values(3, '0001-01-01-00.00.00.000000')" 
db2 "insert into test1 values(4, '0004-04-04-00.00.00.000000')" 
db2 "insert into test1 values(5, '0002-02-02-00.00.00.000000')" 
. 
db2 "select distinct id, TO_CHAR(mytime, 'YYYY-MM-DD 
HH24:MI:SS') from test1 order by TO_CHAR(mytime,'YYYY-MM-DD 
HH24:MI:SS')" 
. 
This would fail with sql0214n rc=2
Problem-Zusammenfassung:
Using expressions such as TO_CHAR, VARCHAR_FORMAT, DATE, TIME, 
TIMESTAMP, TIMESTAMP_FORMAT, TO_DATE, in the order by 
clause even though they are part of the select list. 
. 
For example: 
db2 "create table test1(id int, mytime timestamp)" 
. 
db2 "insert into test1 values(1, '0001-01-01-00.00.00.000000')" 
db2 "insert into test1 values(2, '0002-02-02-00.00.00.000000')" 
db2 "insert into test1 values(3, '0001-01-01-00.00.00.000000')" 
db2 "insert into test1 values(4, '0004-04-04-00.00.00.000000')" 
db2 "insert into test1 values(5, '0002-02-02-00.00.00.000000')" 
. 
db2 "select distinct id, TO_CHAR(mytime, 'YYYY-MM-DD 
HH24:MI:SS') from test1 order by TO_CHAR(mytime,'YYYY-MM-DD 
HH24:MI:SS')" 
. 
This would fail with sql0214n rc=2
Local-Fix:
verfügbare FixPacks:
DB2 Version 9.7 Fix Pack 5 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 6 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 7 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 8 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 9 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 9a for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 10 for Linux, UNIX, and Windows

Lösung
apar ic75127 
module engn_sqnq
Workaround
keiner bekannt / siehe Local-Fix
Weitere Daten
Datum - Problem gemeldet    :
Datum - Problem geschlossen :
Datum - der letzten Änderung:
18.03.2011
08.12.2011
25.01.2012
Problem behoben ab folgender Versionen (IBM BugInfos)
Problem behoben lt. FixList in der Version
9.7.0.5 FixList