DB2 - Problem description
Problem IT01542 | Status: Closed |
QUERY CONTAINING CONSTANT BEFORE OLAP FUNCTION MAY FAIL WITH -901: UNEXPECTED NULL ZVALUE OR ABEND WITH SEGV IN SQLRISET | |
product: | |
DB2 FOR LUW / DB2FORLUW / A50 - DB2 | |
Problem description: | |
Query containing at least one constant, host variable, parameter marker or correlated column before OLAP function and column aggregation function in SELECT list or HAVING clause may fail with: SQL0901N The SQL statement or command failed because of a database system error. (Reason "unexpected NULL ZValue!".) or cause SEGV in sqlriset if that query is one of the legs of UNION. Trap file will contain following function on the top of the stack: _Z8sqlrisetP8sqlrr_cb + 0x0260 | |
Problem Summary: | |
**************************************************************** * USERS AFFECTED: * * ALL * **************************************************************** * PROBLEM DESCRIPTION: * * See Error Description * **************************************************************** * RECOMMENDATION: * * Upgrade to DB2 Cancun Release 10.5.0.4 (also known as Fix * * Pack 4) or higher. * **************************************************************** | |
Local Fix: | |
Reorder SELECT list using OLAP function first. E.g if original statement was: SELECT 'CONSTANT', ROW_NUMBER() OVER (PARTITION BY 1),[...], SUM(COLCOUNT) FROM T1; rewrite it in following manner: SELECT ROW_NUMBER() OVER (PARTITION BY 1), 'CONSTANT', [...] SUM(COLCOUNT) FROM T1; | |
available fix packs: | |
DB2 Cancun Release 10.5.0.4 (also known as Fix Pack 4) for Linux, UNIX, and Windows | |
Solution | |
Fixed in DB2 Cancun Release 10.5.0.4 (also known as Fix Pack 4). | |
Workaround | |
not known / see Local fix | |
Timestamps | |
Date - problem reported : Date - problem closed : Date - last modified : | 05.05.2014 13.10.2014 13.10.2014 |
Problem solved at the following versions (IBM BugInfos) | |
Problem solved according to the fixlist(s) of the following version(s) | |
10.5.0.4 |