IBM Support

SI78195 - OSP-OTHER-INCORROUT SQL ALIAS WITH LONG NAME IS INCORRECTLY

PTF Cover Letter


PTF ( Program Temporary Fixes ) Cover letter


Order this fix

Abstract

OSP-OTHER-INCORROUT SQL ALIAS WITH LONG NAME IS INCORRECTLY


Pre/Co-Requisite PTF / Fix List

REQ  LICENSED           PTF/FIX  LEVEL

TYPE PROGRAM  RELEASE   NUMBER   MIN/MAX  OPTION
---- -------- --------- -------  -------  ------
NONE



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 license agreement which
accompanied, or was contained in, the Program for which you are obtaining
the PTF.  You are not authorized to install or use the PTF except as part
of a Program for which you have a valid Proof of Entitlement.

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.

The applicable license agreement may have been provided to you in printed
form and/or may be viewed using the Work with Software Agreements (WRKSFWAGR)
CL command.





APAR Error Description / Circumvention

-----------------------------------------------
When an SQL ALIAS with a long name is referenced, the data for
the member specified on the OVRDBF was accidentally returned.

Example:
LIBRARY/PF is a file with multiple members (MBR1/MBR2/MBR3).

OVRDBF FILE(PF) TOFILE(LIBRARY/PF) MBR(MBR1) OVRSCOPE(*JOB)

CREATE ALIAS LIBRARY/MBR3 FOR LIBRARY/PF (MBR3)
CREATE ALIAS LIBRARY/long_alias_pf_MBR3 FOR LIBRARY/PF (MBR3)

SELECT * FROM LIBRARY/MBR3 will correctly resolve to MBR3.
SELECT * FROM LIBRARY/long_alias_pf_MBR3 will INCORRECTLY
resolve to MBR1.

CORRECTION FOR APAR SE76781 :
-----------------------------
The problem is fixed with this PTF.

CIRCUMVENTION FOR APAR SE76781 :
--------------------------------
None.


DESCRIPTION OF PROBLEM FIXED FOR APAR SE76794 :
-----------------------------------------------
An SQL SELECT statement that has a subselect which uses a
correlator for the table, and the table has a hidden column,
produces a MSGMCH3601 in QSQRCHK and MSGSQL0901 in QSQXCUTE when
run.

CORRECTION FOR APAR SE76794 :
-----------------------------
The handling of the hidden column in this scenario has been
corrected, the MSGMCH3601 and resulting MSGSQL0901 will no
longer be produced, and the SQL SELECT statement will run
correctly.

CIRCUMVENTION FOR APAR SE76794 :
--------------------------------
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
--------------  ------------------------------------------------------------
   SI78087      OSP-DB-MSGSQL7008 F/T QSQRCHK ON CRTSQLCI LEADING TO PRECOMP
   SI77764      OSP-DB INTERNAL MAINTENANCE
   SI77495      OSP-DB INTERNAL MAINTENANCE
   SI77495      OSP-DB-OTHER-INCORROUT INCORRECT RECORDS MAY BE RETURNED WIT

Summary Information

System..............................  i
Models..............................  
Release.............................  V7R5M0
Licensed Program....................  5770SS1
APAR Fixed..........................  View details for APAR SE76781
View details for APAR SE76794

Superseded by:......................  View fix details for PTF SI81604
Recompile...........................  N
Library.............................  QSYS
MRI Feature ........................  NONE
Cum Level...........................  BASE


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, 2020, 2021, 2022 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.

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Platform":[{"code":"PF012","label":"IBM i"}],"Version":"7.5.0","Product":{"code":"SWG60","label":"IBM i"},"Component":"5770SS1","Edition":"","Line of Business":{"code":"LOB57","label":"Power"}}]

Document Information

Modified date:
01 December 2022