IBM Support

LI74702: SYSFUN.RTRIM IS NOT TRIMMING SPACES PROPERLY WHEN USED ON A DBCLOB COLUMN

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • SYSFUN.RTRIM doesn't correctly handle space trimming when used
    on DBCLOB column. Please consider the following SQL
    
    create table test(name dbclob(1G) not logged, namec clob(1G) not
    logged);
    insert into test values ('123  ', '123  ');
    select length(rtrim(substr(namec,1,10))) as len10_clob,
    length(retrim(subs(name,1,10))) as len10_dbclob
    from test;
    
    The select returns the following results
    
    LEN10_CLOB  LEN10_DBCLOB
    ----------- -----------
              3          10
    

Local fix

  • n/a
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ALL                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * SYSFUN.RTRIM doesn't correctly handle space trimming         *
    * whenusedon DBCLOB column. Please consider the following      *
    * SQLcreate table test(name dbclob(1G) not logged, namec       *
    * clob(1G)notlogged);insert into test values ('123  ', '123    *
    * ');select length(rtrim(substr(namec,1,10))) as               *
    * len10_clob,length(retrim(subs(name,1,10))) as                *
    * len10_dbclobfrom test;The select returns the following       *
    * resultsLEN10_CLOB  LEN10_DBCLOB----------- -----------       *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to the DB2 9.5 FixPack 6                             *
    ****************************************************************
    

Problem conclusion

  • Problem was first fixed in Version 9.5 Fix Pack 6
    

Temporary fix

Comments

APAR Information

  • APAR number

    LI74702

  • Reported component name

    DB2 UDE ESE LIN

  • Reported component ID

    5765F4104

  • Reported release

    950

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2009-07-03

  • Closed date

    2010-10-12

  • Last modified date

    2010-10-12

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

    IC65473

Fix information

  • Fixed component name

    DB2 UDE ESE LIN

  • Fixed component ID

    5765F4104

Applicable component levels

  • R950 PSY

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSEPGG","label":"DB2 for Linux, UNIX and Windows"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"950","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
12 October 2010