IBM Support

MF61672 - LIC-DB-OTHER-INCORROUT Left outer join query returns wrong r

PTF ( Program Temporary Fixes ) Cover letter


Order this fix

Abstract

LIC-DB-OTHER-INCORROUT Left outer join query returns wrong r


Pre/Co-Requisite PTF / Fix List

REQ  LICENSED           PTF/FIX  LEVEL

TYPE PROGRAM  RELEASE   NUMBER   MIN/MAX  OPTION
---- -------- --------- -------  -------  ------
PRE  5770999  V7R3M0    MF61285   00/00    0000
CO   5770999  V7R3M0    MF61589   00/00    0000
CO   5770999  V7R3M0    MF61506   00/00    0000
CO   5770999  V7R3M0    MF61333   00/00    0000
CO   5770999  V7R3M0    MF61335   00/00    0000
CO   5770999  V7R3M0    MF61339   00/00    0000
CO   5770999  V7R3M0    MF61156   00/00    0000
CO   5770999  V7R3M0    MF61148   00/00    0000



NOTICE:
-------
Application of this PTF may disable or render ineffective programs that
use system memory addresses not generated by the IBM translator,
including programs that circumvent control technology designed to limit
interactive capacity to purchased levels.  This PTF may be a prerequisite
for future PTFs.  By applying this PTF you authorize and agree to the
foregoing.

This PTF is subject to the terms of the 'IBM License Agreement for Machine
Code', the terms of which were provided in a printed document that was
delivered with the machine.

SUBJECT TO ANY WARRANTIES WHICH CAN NOT BE EXCLUDED OR EXCEPT AS EXPLICITLY
AGREED TO IN THE APPLICABLE LICENSE AGREEMENT OR AN APPLICABLE SUPPORT
AGREEMENT, IBM MAKES NO WARRANTIES OR CONDITIONS EITHER EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OR CONDITIONS OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON INFRINGEMENT,
REGARDING THE PTF.





APAR Error Description / Circumvention

-----------------------------------------------
Wrong results may be produced for a query involving a LEFT OUTER
JOIN if the join predicate contains a value derived from a
column value. If that same derived value is included in the
query output by the SELECT clause, the value may be incorrect
for some rows. Note that the derivation may be explicit (e.g.
SUBSTR) or implicit (a cast of a numeric value to a character
value).

CORRECTION FOR APAR MA45434 :
-----------------------------
In order to improve the speed of query results, the SQE
optimizer evaluates values only when necessary. Because of the
column value's presence in the join predicate, the optimizer
concluded that the column value had already been evaluated by
the right side of the LEFT OUTER JOIN. However, this assumption
did not hold for the join exception row, leading to an
unspecified value being produced for exception rows. This fix
ensures that the value is unconditionally evaluated after the
join so that the correct value accompanies all rows.

CIRCUMVENTION FOR APAR MA45434 :
--------------------------------
None.


Activation Instructions


None.




Special Instructions


None.


Default Instructions

THIS PTF CAN BE APPLIED IMMEDIATE OR DELAYED.



Supersedes

PTF/FIX NO(S).  APAR TITLE LINE
--------------  ------------------------------------------------------------
   MF61633      LIC-DB-OTHER-MSGMCH3203-F/DBOPAFFINITY-T/QQQOOODBOP followed
   MF61587      LIC-DB-PERFM bad plan when running commit *ALL
   MF61576      OSP-DB-OTHER-SAP400 INDEX ADVISER IS SETTING SORT TABLE TO *
   MF61571      OSP-PAR-940XMISC AFTER UPGRADE TO R720 POOR QUERY PERFORMANC
   MF61507      LIC-DB-PERFM SQL Improve column elimination in union queries
   MF61432      LIC-DB Internal Database Maintenance
   MF61332      LIC-DB Internal Maintenance
   MF61301      LIC-DB Offload long EKR estimates found during optimization
   MF61155      LIC-DB-PERFM - EAO with Partitioned Tables
   MF61155      LIC-DB-PERFM Partitioned Table Index preload IO cost too hig
   MF61149      LIC-PERFM-PAR-940XMISC Bad Query Plan
   MF61126      LIC-DB-OTHER-F/QDBSIGEX-MSGCPF5149 MAY OCCUR WHEN USING USIN
   MF60927      LIC-DB Plan Cache Property Number of created MTIs is zero
   MF60927      LIC-DB-INCORROUT SMP XML INCORRECT OUTPUT AFTER UPGRADE
   MF60927      LIC-DB-OTHER-INCORROUT SQL LOCATE with VARCHAR columns and t
   MF60927      LIC-DB-PERFM SQL Honor KEEPINMEM MEMORY_POOL_PREFERENCE for

Summary Information

System.............................. i
Models..............................
Release............................. V7R3M0
Licensed Program............... 5770999
APAR Fixed.......................... View details for APAR MA45434
Superseded by:...................... View fix details for PTF MF66537
Recompile........................... N
Library............................. QSYS
MRI Feature ........................ NONE
Cum Level........................... C6299730


IBM 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, 2018, 2019 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: V7R3M0

Operating system(s): OS/400

Reference #: MF61672

Modified date: 07 April 2016