Subscribe to this APAR
By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.
APAR (Authorized Program Analysis Report)
Abstract
F/QSQFETCH-MSGSQL0811-RCTYPE1 FROM SQL QUERY WITH FETCH FIRST 1
ROWS ONLY
Error Description
select from ...
FETCH FIRST 1 ROWS ONLY
returned SQL0811
Problem Summary
An SQL query that explicitly specifies FETCH FIRST 1 ROWS ONLY
causes an SQL0811, error type 1.
Problem Conclusion
The SQL optimizer uses a technique that removes the explicit
fetching limit if a unique index exists that ensures only a
single row will be produced. The technique used flawed logic
that incorrectly determined that the fetching limit could be
removed in this case. This PTF fixes the flawed logic for this
technique.
Temporary Fix
Comments
Circumvention
PTFs Available
R720 MF60712 6127
R730 MF61125 6085
Affected Modules
Affected Publications
Summary Information
Status............................ CLOSED PERHIPER............................. No
Component......................... 9400DG3DBMF7
Failing Module.................... RCHMGR
Reported Release.................. R720
Duplicate Of......................
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, 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
Document Information
Modified date:
24 October 2023