IBM Support

IT35847: AGGREGATE EXPRESSIONS INCONSISTENCY I.E. MIN(), MAX() WITH UNION

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • You'll get -308 error (incompatible type) with following:
    
    --Create Test table
    
    create temp table tab1(col1 char(8)) with no log;
    insert into tab1 values ('ZZZ');
    
     -- Test1 - Fails with SQL 308 error
    
    select col1, 0, '0' from tab1
    UNION
    select col1, MIN(1), MIN('1') from tab1 group by 1
    
    
    -- Test2 - works
    
    select col1, 0 from tab1
    UNION
    select col1, MIN(1) from tab1 group by 1
    
    -- Test3 - works
    
    select col1, '0' from tab1
    UNION
    select col1, MIN('1') from tab1 group by 1
    
    -- Test4 - works
    
    select col1, 0, '0' from tab1
    UNION
    select col1, MIN(1), MIN('1')::char from tab1 group by 1
    
    --Test5 - works
    
    select col1, 0, '0' from tab1
     UNION
    select col1, MIN(1), MIN('2') from tab1 group by 1
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Users of Informix Server prior to 12.10.xC16 and 14.10.xC7.  *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to Informix Server 12.10.xC16 or 14.10.xC7.          *
    ****************************************************************
    

Problem conclusion

  • Fixed in Informix Server 12.10.xC16 and 14.10.xC7.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT35847

  • Reported component name

    INFORMIX SERVER

  • Reported component ID

    5725A3900

  • Reported release

    C10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2021-02-09

  • Closed date

    2023-05-01

  • Last modified date

    2023-05-01

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

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

Fix information

  • Fixed component name

    INFORMIX SERVER

  • Fixed component ID

    5725A3900

Applicable component levels

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSGU8G","label":"Informix Servers"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"C10","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
02 May 2023