IBM Support

IT39149: SELECT WITH PDQ AND SUBQUERY CAN PRODUCE WRONG RESULTS

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • With PDQ this example query is producing a different result then
    without using PDQ shows different results
    export PDQPRIORITY=10
    
    14.10.FC6 $ six dbaccess sysmaster -
    
    Database selected.
    
    > SELECT /*+ explain */ count(*)
    FROM systables t50, syscolumns t71
    WHERE t50.tabid = t71.tabid
    AND t71.tabid||';'||t71.colno in
    (SELECT tabid||';'||min(colno)
    FROM syscolumns group by tabid);> > > > >
    
    
          (count(*))
    
                 104
    
    1 row(s) retrieved.
    =================================
    export PDQPRIORITY=0
    
    14.10.FC6 $ six dbaccess sysmaster -
    
    Database selected.
    
    > SELECT /*+ explain */ count(*)
    FROM systables t50, syscolumns t71
    WHERE t50.tabid = t71.tabid
    AND t71.tabid||';'||t71.colno in
    (SELECT tabid||';'||min(colno)
    FROM syscolumns group by tabid);> > > > >
    
    
          (count(*))
    
                 265
    
    1 row(s) retrieved.
    

Local fix

Problem summary

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

Problem conclusion

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

Temporary fix

Comments

APAR Information

  • APAR number

    IT39149

  • Reported component name

    INFORMIX SERVER

  • Reported component ID

    5725A3900

  • Reported release

    E10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2021-11-19

  • Closed date

    2022-04-07

  • Last modified date

    2023-05-04

  • 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":"E10","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
05 May 2023