Informix - Problem description
Problem IT40875 | Status: Closed |
NESTED COLLECTION SUBQUERY RETURNING EMPTY WITH 'ORDER BY' ON MAIN QUERY | |
product: | |
INFORMIX SERVER / 5725A3900 / E10 - | |
Problem description: | |
A collection subquery nested in another one would loose its result set if an ORDER BY is placed on the main query. Most simple example: SELECT 'x' x , MULTISET ( SELECT MULTISET ( SELECT 'y' ) ) ms ORDER BY 1; should return (and does without the ORDER BY) x x m MULTISET{ROW(MULTISET{ROW('y')})} yet returns x x ms MULTISET{ROW(MULTISET{})} | |
Problem Summary: | |
**************************************************************** * USERS AFFECTED: * * Users of Informix Server prior to 14.10.xC9. * **************************************************************** * PROBLEM DESCRIPTION: * * See Error Description * **************************************************************** * RECOMMENDATION: * * Upgrade to Informix Server 14.10.xC9. * **************************************************************** | |
Local Fix: | |
Workaround: SELECT 'x' x , MULTISET ( SELECT MULTISET ( SELECT 'y' ) )::lvarchar ms ORDER BY 1; | |
Solution | |
Workaround | |
**************************************************************** * USERS AFFECTED: * * Users of Informix Server prior to 14.10.xC9. * **************************************************************** * PROBLEM DESCRIPTION: * * See Error Description * **************************************************************** * RECOMMENDATION: * * Upgrade to Informix Server 14.10.xC9. * **************************************************************** | |
Comment | |
Fixed in Informix Server 14.10.xC9. | |
Timestamps | |
Date - problem reported : Date - problem closed : Date - last modified : | 09.05.2022 30.09.2022 30.09.2022 |
Problem solved at the following versions (IBM BugInfos) | |
Problem solved according to the fixlist(s) of the following version(s) |