IBM Support

SI79388 - 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
---- -------- --------- -------  -------  ------
PRE  5770SS1  V7R3M0    SI70930   00/00    0000
PRE  5770SS1  V7R3M0    SI67724   00/00    0000
PRE  5770SS1  V7R3M0    SI68007   00/00    0000
PRE  5770SS1  V7R3M0    SI64030   00/00    0000
PRE  5770SS1  V7R3M0    SI63449   00/00    0000
PRE  5770SS1  V7R3M0    SI63438   00/00    0000
PRE  5770SS1  V7R3M0    SI62038   00/00    0000
PRE  5770SS1  V7R3M0    SI60057   00/00    0000
CO   5770SS1  V7R3M0    SI72117   00/00    0000
CO   5770SS1  V7R3M0    SI71079   00/00    0000
CO   5770SS1  V7R3M0    SI67739   00/00    0000
CO   5770SS1  V7R3M0    SI68410   00/00    0000
CO   5770SS1  V7R3M0    SI67883   00/00    0000
CO   5770SS1  V7R3M0    SI67229   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 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 SE77640 :
-----------------------------------------------
A CPD4324 message is issued for the wrong file. A library list
resolution is used for the file name and SQL aliases are used as
well.

CORRECTION FOR APAR SE77640 :
-----------------------------
The problem occurs with unqualified long alias names. The
problem is fixed with this PTF.

CIRCUMVENTION FOR APAR SE77640 :
--------------------------------
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
--------------  ------------------------------------------------------------
   SI78982      OSP-DB-OTHER-F/QQQVFMT-T/QSQRUN3-MSGCPD4302 CPD4302 F/QQQVFM
   SI78982      OSP-DB-MSGSQL0204 F/T QSQXCUTE WHEN CREATE SQL PROCEDURE/FUN
   SI78982      OSP-DB-MSGSQL7008 F/T QSQRCHK ON CRTSQLCI LEADING TO PRECOMP
   SI78982      OSP-DB-MSGSQL0206, MSGSQL0208, MSGSQL0153 WHEN UNION WITH NO
   SI78139      F/QSQRCHK-MSGMCH3601-MOD/QSQRCHK-RIDS/SELECT_TABLE SELECT FR
   SI77408      OSP-DB-OTHER-INCORROUT INCORRECT RECORDS MAY BE RETURNED WIT
   SI76762      OSP-DB-OTHER-RC21-MSGSQ20525 INCORRECTLY ON A CREATE TABLE A
   SI76413      OSP-DB-OTHER-F/QSQDDL1-T/QSQDDL1-MSGMCH1210 SQL7032 QGENOBJN
   SI75462      OSP-DB INTERNAL MAINTENANCE
   SI75058      OSP-DB-OTHER-MSGSQL0302 INCORRECT ERROR MESSAGE
   SI74814      OSP-DB-OTHER-F/QSQRUN1-T/QSQRUN1-MSGSQL0122 A MSGSQL0122 MAY
   SI74680      SQL-CMPL-T/QSQPMAIN-MSGMCH0601 CRTSQLRPGI DBGVIEW(*SOURCE) P
   SI74680      OSP-DB-OTHER-MSGSQL0104 RUNSQLSTM PROBLEM WITH MARGINS PARAM
   SI74369      SQL-CMPL SQL PRECOMPILE ENHANCED WHENEVER STATEMENT
   SI74316      OSP-DB INTERNAL MAINTENANCE
   SI74316      SQL-RUN-F/QSQRUN3-T/QSQRUN3-MSGSQL0205 QUERY FAILS WITH MSGS
   SI74102      OSP-DB INTERNAL MAINTENANCE
   SI74102      OSP-DB INFRASTRUCTURE
   SI73948      OSP-DB-OTHER-UNPRED INTERNAL MAINTENANCE
   SI73316      OSP-DB-INCORROUT SQL ROUTINE CONDITION HANDLER PROBLEM
   SI72878      OSP-DB INTERNAL MAINTENANCE
   SI72324      OSP-DB INTERNAL MAINTENANCE
   SI72275      OSP-DB INTERNAL MAINTENANCE
   SI72201      OSP-DB-MSGSQL0204 ON CREATE PROCEDURE WITH ALTER TRIGGER FOL
   SI72118      OSP-DB INTERNAL MAINTENANCE
   SI71690      OSP-DB-OTHER-F/QSQCLNUP-MSGSQL7007 NOT RETURNED
   SI71484      SQL-CMPL-OTHER-MSGCPD0042 CRTSQLCI/CRTSQLCPPI ERROR WITH TER
   SI71153      OSP-DB-INTERNAL MAINTENANCE
   SI71078      OSP-DB-MSGSQL0205 WHEN TWO DEFAULT EXPRESSIONS SPECIFIED FOR
   SI70935      OSP-DB INTERNAL MAINTENANCE
   SI70453      OSP-MSGSQL0408 SQL STATEMENT-OLAP FUNCTIONS LEAD OVER PARTIT
   SI70356      SQL-CMPL-MSGSQL7032 SQL ROUTINE OR TRIGGER FAILS TO CREATE
   SI70215      OSP-DB-MSGSQL0205 OR MSGSQL0204 REFERENCED COLUMN OR TABLE N
   SI69454      OSP-DB INTERNAL MAINTENANCE
   SI69153      OSP-DB INTERNAL MAINTENANCE
   SI69153      OSP-DB INTERNAL MAINTENANCE
   SI69056      OSP-DB INFRASTRUCTURE
   SI68940      SQL-CMPL-INCORROUT CRTSQLCI FAILS WHEN COMPILING IFS SOURCE
   SI64965      SQL-RUN-PERFM CRTSQLCI/CRTSQLCPPI PERFORMANCE
   SI68925      OSP-DB-INCORROUT SQL ROUTINE WITHOUT LANGUAGE SQL CLAUSE
   SI68840      OSP-DB-MSGSQL0204 WHEN CREATE PROCEDURE CONTAINING ALTER TRI
   SI68838      OSP-DB-OTHER-F/QSQCRTT-T/QSQCRTT-MSGSQL0636 CREATE PARTITION
   SI68765      OSP-DB-OTHER-INCORROUT WHEN UPDATE STATEMENT IS RUN WITH SEL
   SI68458      OSP-DB-OTHER-F/QSQRUN1X/11879-RCRC8-MSGSQL7008 CREATE TABLE
   SI68411      OSP-DB-OTHER-UNPRED SERVICEABILITY CHANGE-PROGRAM GROWTH INF
   SI68351      OSP-MSGSQL0913 LONG LOCK WAIT ON PROGRAM DUE TO ACCESS PLAN
   SI68331      SQL-CMPL-MSGSQL7032 SQL ROUTINE OR TRIGGER FAILS TO CREATE
   SI68306      OSP-DB Recursive use of RUNSQL not allowed but message not c
   SI68298      OSP-DB-OTHER-THREADS-F/QSQRUN1-T/QSQRUN1-MSGSQL0204 MSGSQL02
   SI68258      SQL-RUN-F/QQQVFMT-T/QQQVFMT-MSGMCH3601 ON NESTED UNQUALIFIED
   SI68077      OSP-DB MSGMCH3203 F/QQQOOODBOP JSON function in UNION query
   SI68066      SQL-CMPL-MSGSQL7032 SQL ROUTINE OR TRIGGER FAILS TO CREATE
   SI67935      OSP-DB INTERNAL MAINTENANCE
   SI67885      OSP-DB-OTHER-F/QSQSBAS-T/QSQSBAS-MOD/QSQGTSPC-PROC/CREATEMEM
   SI67885      OSP-DB INTERNAL MAINTENANCE
   SI67885      SQL-CMPL-MSGSQL7032 SQL ROUTINE OR TRIGGER FAILS TO CREATE
   SI67615      OSP-DB INFRASTRUCTURE
   SI67582      OSP-DB INTERNAL MAINTENANCE
   SI67491      OSP-DB-OTHER SQL PRECOMPILE LISTING MISSING CCSID VALUE
   SI67482      OSP-DB-MSGCPD4311 external procedure with long parameters wi
   SI67287      OSP-DB-OTHER-F/QSQRCHKX/26368-MSGMCH3601 UPDATE STATEMENT FA
   SI67228      OSP-DB-PERFM SQL ROUTINE PERFORMANCE
   SI66982      OSP-DB-OTHER-MSGSQL7032 RUNSQLSTM CCSID 290, 930, OR 5026 PR
   SI66956      OSP-DB CREATE TABLE with hex string default using *STD optio
   SI66944      OSP-DB INFRASTRUCTURE
   SI66517      OSP-DB-OTHER-F/QDBIOERRQOX/4194-T/QSQRUN2X/20780-MSGCPF5387
   SI66484      OSP-DB-OTHER SQL STATEMENT USING A COLUMN OR AGGREGATE FUNCT
   SI66484      OSP DESCRIBE OF PARAMETER DATA INCORRECT WHEN TABLE HAS COLU
   SI66183      OSP-DB-INCORROUT-MSGSQL0502 WITHIN PIPELINED TABLE FUNCTION
   SI66183      OSP-DB-OTHER-INCORROUT WRONG COLUMN NAME USED FOR VIEW WHEN
   SI66183      OSP-DB-OTHER-F/QSQRCHK-T/QSQRCHK-MSGMCH1210 CRTSQLCBLI OPTIO
   SI65872      OSP-DB INTERNAL MAINTENANCE
   SI65846      OSP-DB INTERNAL MAINTENANCE
   SI65810      OSP-DB INTERNAL MAINTENANCE
   SI65760      OSP-DB INTERNAL MAINTENANCE
   SI65459      OSP-PERFM SQL INSERT SLOW AFTER A FAILED ALTER TABLE
   SI65421      OSP-DB INTERNAL MAINTENANCE
   SI65386      OSP COLUMN NAMES NOT SET CORRECTLY IN RESULT SET RETURNED IN
   SI65358      OSP-DB-OTHER-F/QQQVFMT-T/QSQRUN3-MSGCPD4302 MSGCPF4302 F/QQQ
   SI65292      OSP-DB Teraspace memory leak when multiple derived tables in
   SI65140      OSP-DB-OTHER-F/QSQXCUTE-T/QSQXCUTE-MSGSQL0205 MSGSQL0205 F/Q
   SI65097      OSP-DB INTERNAL MAINTENANCE
   SI64454      OSP-DB-OTHER-MSGSQL0326 JOBS SEEING SQL0326 IN APPLICATION J
   SI64408      OSP-DB-OTHER-F/QSQRCHK-T/QSQRCHK-MSGMCH1210 MCH1210 F/QSQRCH
   SI64347      OSP-DB-F/QSQRCHK-MSGMCH1210 when returning a SQL0390 process
   SI64347      OSP-DB-OTHER-T/QSINS-MSGSQL0203 INSERT STATEMENT FAILS WITH
   SI64347      OSP-DB-OTHER-F/QSQRCHK-MSGMCH1210 WHEN RECURSIVE COMMON TABL
   SI64192      OSP-DB INTERNAL MAINTENANCE
   SI64004      OSP-DB INTERNAL MAINTENANCE
   SI64004      OSP-DB Internal Maintenance
   SI63877      OSP-DB Correct FULL OUTER JOIN implementation
   SI63862      OSP-DB INTERNAL MAINTENANCE
   SI63836      OSP-DB INTERNAL MAINTENANCE
   SI63764      OS-DB-OTHER Fix handling of partition table range boundary v
   SI63636      OSP-DB INTERNAL MAINTENANCE
   SI63613      OSP-DB INTERNAL MAINTENANCE
   SI63513      OSP-DB INTERNAL MAINTENANCE
   SI63463      OSP-DB Addition of LTRIM / RTRIM Function Support
   SI63379      OSP-DB Internal Maintenance
   SI63231      OSP-DB Do not issue SQL7901 for create package
   SI63141      OSP-DB-OTHER-RC2-MSGSQL0101 SQL COMPLEX SQL0101 RC2
   SI63077      OSP-DB-OTHER-F/QSQRUN1-T/QSQRUN1-MSGSQL0205 COLUMN NAME NOT
   SI63077      OSP-DB-OTHER-F/QSQRUN2-T/QSQRUN2-MSGSQL0204 REMOTE THREE PAR
   SI63077      OSP-DB Internal Maintenance
   SI63005      OSP-DB-OTHER-F/QSQPLIST-T/QSQPLIST-MSGMCH3402 ALTER TABLE FR
   SI62773      OSP-DB INTERNAL MAINTENANCE
   SI62630      OSP-DB INTERNAL MAINTENANCE
   SI62581      OSP-DB INTERNAL MAINTENANCE
   SI62527      OSP-DB-OTHER-F/QQDAPROC-T/QQDAPROC-MSGMCH3602 ON SOME CRTSQL
   SI62527      OSP-DB INFRASTRUCTURE
   SI62507      OSP-DB INTERNAL MAINTENANCE
   SI62294      OSP-DB INTERNAL MAINTENANCE
   SI62111      OSP-DB INFRASTRUCTURE
   SI62099      OSP-DB Internal Maintenance
   SI62063      OSP-DB INFRASTRUCTURE
   SI62056      OSP-DB-OTHER-F/QSQRUN2-T/QSQRUN2-MSGSQL0204 SQL0204 F/QSQRUN
   SI61633      OSP-DB INTERNAL MAINTENANCE
   SI61322      OSP-DB SQL0171 when using VARGRAPHIC type with INSTR() or LO
   SI61196      OSP-DB-OTHER-T/QSQSCHEM-MSGCPD0018 RUNSQLSTM PROBLEM WITH CL
   SI61054      OSP-DB Internal Maintenance
   SI60961      OSP-DB-MSGSQL0205 QSQBLQDT for table function with correlati
   SI60928      OSP-DB Allow select when setting CURRENT TEMPORAL SYSTEM_TIM
   SI60801      OSP-DB-OTHER-T/QSQPMAIN-MSGCPF9999 FROM CRTSRCPF/CHGSRCPF/AD
   SI60801      SQL-CMPL-CURR ALLOW COMPILEOPT('OPTION(*EVENTF)') ON SQL PRE
   SI60801      OSP-DB INTERNAL MAINTENANCE
   SI60791      OSP-DB-OTHER-INCORROUT QDT is not rebuilt when SELECT * and
   SI60598      OSP-DB Internal Maintenance
   SI60594      OSP-DB INFRASTRUCTURE
   SI60594      OSP-DB INFRASTRUCTURE
   SI60473      OSP-DB INTERNAL MAINTENANCE
   SI60428      OSP-DB-OTHER BETTER SQL IDENTIFIER NAMES
   SI60428      OSP-DB-F/QSQINS-MSGMCH3402 DLTF on table with row and column
   SI60398      OSP-DB-MSGMSG0601 T/QQQFVMT Proc/MAP using lateral correlati
   SI60398      OSP-DB INFRASTRUCTURE
   SI60363      OSP-DB-MSGSQL0101 Using a correlated column in the ORDER BY
   SI60268      OSP-DB Internal Maintenance
   SI60267      OSP-DB INFRASTRUCTURE
   SI60253      OSP-DB INFRASTRUCTURE
   SI60199      OSP-DB-OTHER CREATE TABLE AS WITH DATA does not ignore an OV
   SI60185      OSP-DB-OTHER-MSGSQL0053 RUNSQLSTM PROBLEM WITH UNICODE CCSID
   SI60144      OSP-DB-INCORROUT INLINED SQL FUNCTION
   SI60104      OSP-DB Internal Maintenance
   SI60050      SQL-CMPL-CURR-T/QSQPRUN-MSGSQL8016 SQL PRECOMPILE
   SI60050      OSP-DB INTERNAL MAINTENANCE
   SI60012      OSP-DB Internal Maintenance
   SI59858      OSP-DB INFRASTRUCTURE
   SI59663      OSP-DB Internal Maintenance
   SI59655      OSP-DB INTERNAL MAINTENANCE
   SI59609      OSP-DB INFRASTRUCTURE
   SI59515      OSP-DB Internal Maintenance
   SI59511      OSP-DB INFRASTRUCTURE
   SI59511      OSP-DB INFRASTRUCTURE
   SI59511      OSP-DB INFRASTRUCTURE
   SI59310      OSP-DB-OTHER-MSGSQL0900 AFTER CRTSQLCI to REMOTE RDB
   SI59276      OSP-DB INFRASTRUCTURE
   SI59267      OSP-DB-OTHER-F/QQQSRVE1-T/QSQRUN3-RC21-MSGCPD4374 UPDATING X
   SI59147      OSP-DB-MSGMCH3601-QSQPROC RUNSQL of compound dynamic stateme
   SI59112      OSP-DB INTERNAL MAINTENANCE
   SI58992      OSP-DB INTERNAL MAINTENANCE
   SI58974      OSP-DB OFFSET clause changes for internal processing
   SI58968      OSP-DB Internal Maintenance
   SI58953      OSP-DB INTERNAL MAINTENANCE
   SI58806      OSP-DB Internal Maintenance
   SI58511      OSP-DB-OTHER-PERFM EXTRA CONNECTION DONE WITH 3-PART NAMING
   SI58511      OSP-DB INTERNAL MAINTENANCE
   SI58511      OSP-DB Internal Maintenance
   SI60058      OSP-DB-OTHER-MSGSQL0900 AFTER CRTSQLCI to REMOTE RDB
   SI67728      OSP-DB-PERFM INLINED SQL TABLE FUNCTION

Summary Information

System..............................  i
Models..............................  
Release.............................  V7R3M0
Licensed Program....................  5770SS1
APAR Fixed..........................  View details for APAR SE76781
View details for APAR SE77640

Superseded by:......................  
Recompile...........................  N
Library.............................  QSYS
MRI Feature ........................  NONE
Cum Level...........................  NONE


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.3.0","Product":{"code":"SWG60","label":"IBM i"},"Component":"5770SS1","Edition":"","Line of Business":{"code":"LOB57","label":"Power"}}]

Document Information

Modified date:
25 May 2022