DB2 - Problem description
| Problem IC80338 | Status: Closed |
WHEN INNER JOIN OPERATION IS REFERENCED OUTSIDE OF FROM CLAUSE, DB2 RETURNS SQL0901N ERROR MESSAGE AND GENERATES DUMP FILES. | |
| product: | |
DB2 FOR LUW / DB2FORLUW / 970 - DB2 | |
| Problem description: | |
When INNER JOIN operation is referenced outside of FROM clause,
db2 returns SQL0901N error message and generates dump files. For
example:
with
test1 as ( select 1 as c1 from sysibm.sysdummy1 ) ,
test1_recur ( c1 ) as (
select c1 from test1
union all
(select c1+1 from test1_recur where c1 < 10 ) as c1
inner join
( select 3 as c3 from sysibm.sysdummy1 ) as c3
on 1=1 and c3.c3 = c1.c1 )
select * from test1_recur;
This example query is not syntaticaly correct. The INNER JOIN
operation can only be referenced in the FROM clause of a
subselect.
When this query is executed, db2 returns SQL0901N error and
generates dump files. This APAR will return more graceful error
instead of the SQL0901N, which will not generate dump files. | |
| Problem Summary: | |
**************************************************************** * USERS AFFECTED: * * ALL * **************************************************************** * PROBLEM DESCRIPTION: * * See Error Description * **************************************************************** * RECOMMENDATION: * * Upgrade to DB2 Version 9.7 Fixpack 6 or later. * **************************************************************** | |
| Local Fix: | |
| available fix packs: | |
DB2 Version 9.7 Fix Pack 6 for Linux, UNIX, and Windows | |
| Solution | |
The issue is first fixed in DB2 Version 9.7 Fixpack 6. | |
| Workaround | |
not known / see Local fix | |
| Timestamps | |
Date - problem reported : Date - problem closed : Date - last modified : | 09.12.2011 12.06.2012 12.06.2012 |
| Problem solved at the following versions (IBM BugInfos) | |
9.7.FP6 | |
| Problem solved according to the fixlist(s) of the following version(s) | |
| 9.7.0.6 |
|