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 IT26178 Status: Geschlossen

WRONG RESULTS FROM SELECT INTO STATEMENT CONTAINING WITH CLAUSE AND
DATA-CHANGE-TABLE-REFERENCE

Produkt:
DB2 FOR LUW / DB2FORLUW / B10 - DB2
Problembeschreibung:
A SELECT INTO statement with multiple assignment targets may
assign the results in the wrong order.  This can happen when the
SELECT INTO statement has all the following characteristics:

- two or more common-table-expressions
- at least one of the common-table-expressions includes a
data-change-table-reference
- multiple assignment-targets

The symptom depends on whether the assignment-targets are
compatible with the re-ordered select list.  If there is an
incompatibility, an error is returned at execution time. e.g.:

   create table t1 (i int);

   CREATE OR REPLACE PROCEDURE P ( out i int, out t time )
   LANGUAGE SQL
   BEGIN
     WITH
     CTE1(I) AS (
         SELECT * from final table( insert into T1 values (1))
     ),
     CTE2(T) as (values current time)
     SELECT CTE1.I, CTE2.T INTO I, T FROM CTE1,CTE2; --
   END
   DB20000I  The SQL command completed successfully.

   call p(?,?)
   SQL0303N  A value cannot be assigned to a host variable in
the SELECT, VALUES,
   FETCH or assignment statement because the data types are not
compatible.
   SQLSTATE=42806

Otherwise, if no conversion error occurs, assignment-targets
will have the wrong values.
Problem-Zusammenfassung:
****************************************************************
* USERS AFFECTED:                                              *
* ALL                                                          *
****************************************************************
* PROBLEM DESCRIPTION:                                         *
* See Error Description                                        *
****************************************************************
* RECOMMENDATION:                                              *
* Upgrade to Db2 11.1 Mod 4 Fixpack 4 or higher                *
****************************************************************
Local-Fix:
Lösung
Workaround
keiner bekannt / siehe Local-Fix
Weitere Daten
Datum - Problem gemeldet    :
Datum - Problem geschlossen :
Datum - der letzten Änderung:
04.09.2018
27.11.2018
27.11.2018
Problem behoben ab folgender Versionen (IBM BugInfos)
Problem behoben lt. FixList in der Version