PTF Cover Letter
PTF ( Program Temporary Fixes ) Cover letter
OSP-DB-OTHER-INCORROUT JSON_TABLE incorrect lax mode process
Pre/Co-Requisite PTF / Fix List
REQ LICENSED PTF/FIX LEVEL
TYPE PROGRAM RELEASE NUMBER MIN/MAX OPTION
---- -------- --------- ------- ------- ------
CO 5770SS1 V7R3M0 SI63983 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
-----------------------------------------------
The lax mode processing for JSON_TABLE does not return the
expected result for the following query:
SELECT * FROM JSON_TABLE(
'{ "x": [ 1,2 ] }' ,
'$ '
COLUMNS( "x" varchar(20) PATH 'lax $.x' ) error on
error) t;
The query currently returns the value 1, but should be returning
an error because the use of lax mode should result in the
sequence [ 1, 2 ], which cannot be converted to a scalar value.
CORRECTION FOR APAR SE67801 :
-----------------------------
The lax mode processing JSON_TABLE has been correctly to return
an error in this case. If an existing application relies on the
current behavior, it can be corrected by changing the SQL/JSON
path to explicitly reference the first element of the element.
For example, the query above can be modified as follows to
return the same value as before the fix.
SELECT * FROM JSON_TABLE(
'{ "x": [ 1,2 ] }' ,
'$ '
COLUMNS( "x" varchar(20) PATH 'lax $.x[0]' ) error on
error) t;
CIRCUMVENTION FOR APAR SE67801 :
--------------------------------
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
-------------- ------------------------------------------------------------
SI65563 OSP-DB-OTHER SQL JSON COMMA DECIMAL INCORROUT
SI65324 OSP-DB INTERNAL MAINTENANCE
SI64653 OSP-DB-OTHER-F/QSQJSON2-T/QSQJSON2-MSGMCH3601
SI63853 OSP-DB INTERNAL MAINTENANCE
SI62571 OSP-DB INTERNAL MAINTENANCE
SI62285 OSP-DB INTERNAL MAINTENANCE
SI62148 OSP-DB INTERNAL MAINTENANCE
SI61895 OSP-DB INTERNAL MAINTENANCE
SI61181 OSP-DB INTERNAL MAINTENANCE
SI61067 OSP-DB INTERNAL MAINTENANCE
SI60691 OSP-DB INTERNAL MAINTENANCE
SI60691 OSP-DB INTERNAL MAINTENANCE
Summary Information
System.............................. i
Models..............................
Release............................. V7R3M0
Licensed Program.................... 5770SS1
APAR Fixed.......................... View details for APAR SE67801
Superseded by:...................... View fix details for PTF SI82245
Recompile........................... N
Library............................. QSYS
MRI Feature ........................ NONE
Cum Level........................... C8025730
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, 2023 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.
Was this topic helpful?
Document Information
Modified date:
18 May 2023