suche 36x36
  • Admin-Scout-small-Banner
           

    CURSOR Admin-Scout

    get the ultimate tool for Informix

    pfeil  
Latest versionsfixlist
14.10.xC10 FixList
12.10.xC16.X5 FixList
11.70.xC9.XB FixList
11.50.xC9.X2 FixList
11.10.xC3.W5 FixList
Have problems? - contact us.
Register for free anmeldung-x26
Contact form kontakt-x26

Informix - Problem description

Problem IT19360 Status: Closed

QUERY LOOPS IN OPLOOKSUBQ, WILL RESULST IN STACK OVERFLOW OR HANG

product:
INFORMIX SERVER / 5725A3900 / C10 - IDS 12.10
Problem description:
The following query will cause a stack overflow, and an hang of
the instance, if SHMTOTAL is not set:
create database stack_issue;
create table t1 (a int, ord int);
create table t2 (ord int);

insert into t1 values (1, 1);
insert into t2 values (1);
select t1.ord, sum (a)
from t1, t2
where t1.ord = t2.ord
order by 1, (case when ord >10 then ord-12 else ord end)

Note that t1 and t2 have a column with the same name.

As soon as the name of the column is changed, the statement will
work.

The query is causing a loop in oplooksubq, if a stack a gathered
with
onmode -I 722 it will show lots of calls to this function.
Problem Summary:
****************************************************************
* USERS AFFECTED:                                              *
* Informix user query with order by/group by on same column    *
* name from different tables                                   *
****************************************************************
* PROBLEM DESCRIPTION:                                         *
* See Error Description                                        *
****************************************************************
* RECOMMENDATION:                                              *
* Update to IBM Informix Server 12.10.xC9                      *
****************************************************************
Local Fix:
Note that t1 and t2 have a column with the same name.

As soon as the name of the column is changed, the statement will
work.
Solution
Workaround
not known / see Local fix
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
21.02.2017
10.07.2017
10.07.2017
Problem solved at the following versions (IBM BugInfos)
12.10.xC9
Problem solved according to the fixlist(s) of the following version(s)
Informix EditionsInformix Editions
Informix Editions
DocumentationDocumentation
Documentation
IBM NewsletterIBM Newsletter
IBM Newsletter
Current BugsCurrent Bugs
Current Bugs
Bug ResearchBug Research
Bug Research
Bug FixlistsBug Fixlists
Bug Fixlists
Release NotesRelease Notes
Release Notes
Machine NotesMachine Notes
Machine Notes
Release NewsRelease News
Release News
Product LifecycleProduct Lifecycle
Lifecycle
Media DownloadMedia Download
Media Download