IBM Support

MA45962 - LIC QUERY WITH TRANSITIVE JOIN NOT RETURNING THE CORRECT RESULT FOR SUM AGGREGATE.

 APAR (Authorized Program Analysis Report)

Abstract

LIC QUERY WITH TRANSITIVE JOIN NOT RETURNING THE CORRECT RESULT
FOR SUM AGGREGATE.

Error Description

Customer has queries with transitive JOINs that are not        
returning the correct result for SUM aggregate. Appears some    
rows are not included in the result.                            

Problem Summary

****************************************************************
* PROBLEM: (MA45962) Licensed Program = 5770999 for i 7.1,     *
*                                        i 7.2, and i 7.3      *
*           Usability of a Product's MAJOR Function            *
*            Although rare, in some SQL query instances can    *
*            cause wrong results.                              *
****************************************************************
* USERS AFFECTED: All IBM i operating system users.            *
****************************************************************
* RECOMMENDATION: Apply LIC PTF MF62821 for i 7.1.             *
*                 Apply LIC PTF MF62829 for i 7.2.             *
*                 Apply LIC PTF MF62874 for i 7.3.             *
****************************************************************
Customer has queries with transitive JOINs that are not        
returning the correct result for SUM aggregate. Appears some    
rows are not included in the result.                            

Problem Conclusion

Customer query had multiple left outer joins with local        
selection predicates specific to the left outer join that could
be transitive closed per the join predicate with the main,      
leading query table but these also involved carry over to other
left outer joins in the query.  This resulted in an incorrect  
predicate getting applied to the tree and impacting the final  
answer.  The predicates had to also involve implicit casts added
for data type matching. The logic was fixed so that there can be
no carry over related to multiple Left Outer Join or Left      
Exception Join and local selection predicates and these casted  
expressions.                                                    

Temporary Fix

                       *********                                
                       * HIPER *                                
                       *********                                

Comments

Circumvention


PTFs Available

R710 MF62821 PTF Cover Letter   7192
R720 MF62829 PTF Cover Letter   7068
R730 MF62874 PTF Cover Letter   7283

Affected Modules

         
         

Affected Publications

Summary Information

Status............................................ CLOSED PER
HIPER........................................... Yes
Component.................................. 9400DG3DB
Failing Module.......................... RCHMGR
Reported Release................... R710
Duplicate Of..............................




System i Support

IBM disclaims all warranties, whether express or implied, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose. By furnishing this document, IBM grants no licenses to any related patents or copyrights. Copyright © 1996,1997,1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017 IBM Corporation. Any trademarks and product or brand names referenced in this document are the property of their respective owners. Consult the Terms of use link for trademark information

Document information

More support for: i family

Software version: V7R1M0, V7R2M0, V7R3M0

Operating system(s): OS/400

Reference #: MA45962

Modified date: 28 October 2017