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 IT19260 Status: Closed

THE FUNCTION CREATED "WITH RESUME" CLAUSE RETURNS ERROR 1 "NOT USER"

product:
INFORMIX SERVER / 5725A3900 / C10 - IDS 12.10
Problem description:
The function create with resume returns error 1: Not user .
The same function works without error in IDS 11.50* and IDS
11.70.* .

CREATE FUNCTION "informix".spl_with_resume(
        pAssetid INTEGER,
        pAtribut VARCHAR(30),
        pUltim BOOLEAN DEFAULT 'f',
        pValorPerDefecte VARCHAR(255) DEFAULT NULL
)
        RETURNING VARCHAR(255);
 DEFINE l_valor VARCHAR(255);
        DEFINE l_cont INTEGER;

        LET l_cont = 0;

        FOREACH curAssetAtribut
        FOR
                SELECT valor_varchar
                INTO l_valor
                FROM dtvc_asset_atributs
                WHERE assetid = pAssetid AND atribut = pAtribut
                ORDER BY data_modificacio DESC
                IF pUltim THEN
                        RETURN l_valor;
                END IF;
                LET l_cont = l_cont +1;

        RETURN l_valor
            WITH RESUME;

        END FOREACH;

        IF l_cont = 0 THEN
                RETURN pValorPerDefecte;
        END IF;

END FUNCTION;


select spl_with_resume(m.assetid,'NUM_CHAPTER_PROD','t','')!=''
from dtvc_metadata m where assetid = 1654811;

 Error : 1:Not user
Problem Summary:
****************************************************************
* USERS AFFECTED:                                              *
* Informix server with SPL procedure with 'RESUME'             *
****************************************************************
* PROBLEM DESCRIPTION:                                         *
* See Error Description                                        *
****************************************************************
* RECOMMENDATION:                                              *
* Update to IBM Informix Server 12.10.xC9                      *
****************************************************************
Local Fix:
Solution
Workaround
not known / see Local fix
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
14.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