IBM Support

SI80424 - OSP-DB-OTHER-MSGSQL0204 QUALIFIED UDT REFERENCED IN SQL ROUT

PTF Cover Letter


PTF ( Program Temporary Fixes ) Cover letter


Order this fix

Abstract

OSP-DB-OTHER-MSGSQL0204 QUALIFIED UDT REFERENCED IN SQL ROUT


Pre/Co-Requisite PTF / Fix List

REQ  LICENSED           PTF/FIX  LEVEL

TYPE PROGRAM  RELEASE   NUMBER   MIN/MAX  OPTION
---- -------- --------- -------  -------  ------
PRE  5770SS1  V7R4M0    SI78425   00/00    0000
PRE  5770SS1  V7R4M0    SI70931   00/00    0000
CO   5770SS1  V7R4M0    SI72111   00/00    0000
CO   5770SS1  V7R4M0    SI71086   00/00    0000
CO   5770SS1  V7R4M0    SI70223   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 user-defined type (UDT) is created as a distinct
type and the UDT is used as the data type of a variable within
an SQL procedure, an SQL scalar function, or SQL table function,
a reference to that variable may result in an SQL0204 message
(MSGSQL0204) because the UDT is not handled properly.  The
problem occurs when the SQL routine is created using system
naming (*SYS).

CORRECTION FOR APAR SE78146 :
-----------------------------
The SQL routine parser will be modified to properly handle a
user-defined type when used as the data type of a variable
within an SQL procedure, an SQL scalar function, or SQL table
function.  To obtain the corrected code generation, any affected
SQL routine must be recreated after this PTF is applied.

CIRCUMVENTION FOR APAR SE78146 :
--------------------------------
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
--------------  ------------------------------------------------------------
   SI80278      OSP-DB-OTHER-MSGSQL0461 SQL CAST STATEMENT BETTER MESSAGE TE
   SI79929      OSP-DB-OTHER SQL QUERY WITH AGGREGATE FUNCTION
   SI79929      OSP-DB-OTHER-MSGSQL0901 SQL CREATE TABLE STATEMENT FAILS
   SI79929      OSP-DB-OTHER-MSGSQL0171 STATIC SQL QUERY WITH AGGREGATE FUNC
   SI79431      OSP-F/QQQVSEL-T/QSQRUN3-MSGCPD4324 CPD4324 with unqualified
   SI79178      OSP-DB INFRASTRUCTURE
   SI78981      OSP-DB-MSGSQL0204 F/T QSQXCUTE WHEN CREATE SQL PROCEDURE/FUN
   SI78981      OSP-DB-MSGSQL7008 F/T QSQRCHK ON CRTSQLCI LEADING TO PRECOMP
   SI78981      OSP-DB-MSGSQL0206, MSGSQL0208, MSGSQL0153 WHEN UNION WITH NO
   SI78516      OSP-DB-OTHER-INCORROUT INCORRECT RECORDS MAY BE RETURNED WIT
   SI78426      OSP-DB INFRASTRUCTURE
   SI78138      F/QSQRCHK-MSGMCH3601-MOD/QSQRCHK-RIDS/SELECT_TABLE SELECT FR
   SI78117      OSP-OTHER-INCORROUT SQL ALIAS WITH LONG NAME IS INCORRECTLY
   SI77772      OSP DB2 - FOR MERGE SQL STATEMENT DIAGNOSTICS NOT RETURNED O
   SI76763      OSP-DB-OTHER-RC21-MSGSQ20525 INCORRECTLY ON A CREATE TABLE A
   SI76682      OSP-DB-OTHER-F/QQQVFMT-T/QSQRUN3-MSGCPD4302 CPD4302 F/QQQVFM
   SI76522      OSP-DB-OTHER-T/QSQALTER-MSGMCH3601 ALTERING A REPLICATED TAB
   SI76410      OSP-DB-OTHER-F/QSQDDL1-T/QSQDDL1-MSGMCH1210 SQL7032 QGENOBJN
   SI75461      OSP-DB INTERNAL MAINTENANCE
   SI75059      OSP-DB-OTHER-MSGSQL0302 INCORRECT ERROR MESSAGE
   SI74813      OSP-DB-OTHER-F/QSQRUN1-T/QSQRUN1-MSGSQL0122 A MSGSQL0122 MAY
   SI74681      SQL-CMPL-T/QSQPMAIN-MSGMCH0601 CRTSQLRPGI DBGVIEW(*SOURCE) P
   SI74681      OSP-DB-OTHER-MSGSQL0104 RUNSQLSTM PROBLEM WITH MARGINS PARAM
   SI74404      OSP-DB-OTHER-T/QSQSCHEM-MSGMCH4405
   SI74273      OSP-DB INTERNAL MAINTENANCE
   SI74273      SQL-RUN-F/QSQRUN3-T/QSQRUN3-MSGSQL0205 QUERY FAILS WITH MSGS
   SI74100      OSP-DB INTERNAL MAINTENANCE
   SI74100      OSP-DB INFRASTRUCTURE
   SI73559      OSP-DB-INCORROUT XML UDT AS PARAMETER OR FUNCTION RESULT
   SI73315      OSP-DB-INCORROUT SQL ROUTINE CONDITION HANDLER PROBLEM
   SI73213      OSP-DB-MSGMCH5002 T/QSQCRTT FOLLOWING MSGMCH5802 T/QSQRCHK O
   SI73023      OSP-DB INTERNAL MAINTENANCE
   SI72830      OSP-DB INTERNAL MAINTENANCE
   SI72328      OSP-DB INTERNAL MAINTENANCE
   SI72277      OSP-DB INTERNAL MAINTENANCE
   SI72200      OSP-DB-MSGSQL0204 ON CREATE PROCEDURE WITH ALTER TRIGGER FOL
   SI72112      OSP-DB INTERNAL MAINTENANCE
   SI71085      OSP-DB-MSGSQL0205 WHEN TWO DEFAULT EXPRESSIONS SPECIFIED FOR
   SI70691      OSP-DB Bypass some override processing for internal queries
   SI70650      OSP-DB-MSGMCH1210 F/QSQRCHK WHEN USING RATIO_TO_REPORT OLAP
   SI70452      OSP-MSGSQL0408 SQL STATEMENT-OLAP FUNCTIONS LEAD OVER PARTIT
   SI70408      SQL-CMPL-MSGSQL7032 SQL ROUTINE OR TRIGGER FAILS TO CREATE
   SI70378      OSP-DB-MSGSQL0205 OR MSGSQL0204 REFERENCED COLUMN OR TABLE N
   SI70222      OSP-DB Internal maintenance
   SI70140      OSP-DB Internal Maintenance
   SI69758      OSP-DB-INTERNAL MAINTENANCE
   SI69527      OSP-DB-OTHER-UNPRED INTERNAL MAINTENANCE
   SI69527      OSP-DB INTERNAL MAINTENANCE
   SI69407      OSP-DB-OTHER-UNPRED INTERNAL MAINTENANCE
   SI69204      OSP-DB-OTHER-UNPRED INTERNAL MAINTENANCE
   SI71691      OSP-DB-OTHER-F/QSQCLNUP-MSGSQL7007 NOT RETURNED
   SI71485      SQL-CMPL-OTHER-MSGCPD0042 CRTSQLCI/CRTSQLCPPI ERROR WITH TER
   SI70941      OSP-DB INTERNAL MAINTENANCE

Summary Information

System..............................  i
Models..............................  
Release.............................  V7R4M0
Licensed Program....................  5770SS1
APAR Fixed..........................  View details for APAR SE78146
Superseded by:......................  View fix details for PTF SI81605
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.4.0","Product":{"code":"SWG60","label":"IBM i"},"Component":"5770SS1","Edition":"","Line of Business":{"code":"LOB57","label":"Power"}}]

Document Information

Modified date:
01 December 2022