• Admin-Scout-small-Banner
           
    CURSOR Admin-Scout
    get the ultimate tool for Informix
    pfeil  
invispix 10x10
invispix 10x10
Latest versionsfixlist
14.10.xC5 FixList
12.10.xC14.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
Question in the chat LiveZilla Live Help

Informix - Problem description

Problem IT33524 Status: Closed

TRUNCATED VALUES INSIDE STORED PROCEDURE USING NLV()

product:
INFORMIX SERVER / 5725A3900 / E10 - 
Problem description:
Procedure should return same values in both arguments but it
truncates the second return value:

DROP PROCEDURE IF EXISTS test_pr1;
CREATE PROCEDURE test_pr1 ()
RETURNING VARCHAR(255), VARCHAR(255);

DEFINE init_str
VARCHAR(255) ;
DEFINE v_var                                            CHAR(1);

LET init_str                                            =
'3000.0 in int the value of my card 221) ' ;
LET v_var
= 'N';

RETURN 'Insufficient Balance' || trim(init_str),
                NVL (
                        DECODE (v_var, 'Y', v_var, null),
                        'Insufficient Balance' || trim(init_str)
                        );

END PROCEDURE;
UPDATE STATISTICS FOR PROCEDURE test_pr1;
================================================

echo "EXECUTE PROCEDURE test_pr1();"|dbaccess stores_demo


Database selected.



(expression)  Insufficient Balance3000.0 in int the value of my
card 221)
(expression)  Insufficient Balance3000.0 in int the va


1 row(s) retrieved.



Database closed.



CREATE PROCEDURE test_ffo ()

RETURNING VARCHAR(255), VARCHAR(255);


DEFINE init_str  VARCHAR(255) ;

DEFINE v_var     CHAR(1);


LET init_str     = 'NVL TEST OUT OF THE PROCEDURE' ;

LET v_var        = 'N';


RETURN 'Address unknown' || trim(init_str),

        NVL (DECODE (v_var, 'Y', v_var, null),

             'Address unknown' || trim(init_str));


END PROCEDURE;

UPDATE STATISTICS FOR PROCEDURE test_ffo;


(expression)  Address unknownNVL TEST INSIDE THE PROCEDURE
(expression)  Address unknownNVL TEST INSIDE THE PROCE
Problem Summary:
****************************************************************
* USERS AFFECTED:                                              *
* Users of Informix Server prior to 12.10.xC15 and 14.10.xC5.  *
****************************************************************
* PROBLEM DESCRIPTION:                                         *
* See Error Description                                        *
****************************************************************
* RECOMMENDATION:                                              *
* Upgrade to Informix Server 12.10.xC15 (when available) or    *
* 14.10.xC5.                                                   *
****************************************************************
Local Fix:
Solution
Workaround
not known / see Local fix
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
13.07.2020
07.12.2020
07.12.2020
Problem solved at the following versions (IBM BugInfos)
Problem solved according to the fixlist(s) of the following version(s)
invispix 10x10
invispix 10x10
invispix 10x10
Technical InfoTechnical Info

Technical Info

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

invispix 10x10
Service und SupportService und Support

Service and Support

Informix MonitoringInformix Monitoring

Informix Monitoring

Admin-Scout forInformixAdmin-Scout forInformix

Admin-Scout for Informix

Informix News & InfosInformix News & Infos

Informix News & Infos

This site uses cookies to make it easier for us to provide you with our services. By using our site you agree to the use of cookies.