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 | |
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 |