Data retrieval enhancements

The Db2® 11.5.8 release contains enhancements that improve data retrieval.

The following table lists data retrieval enhancements that have been added to Db2 11.5.8:
Table 1. Data retrieval enhancements in 11.5.8
Enhancement Description
Enhanced registry variable for making the Multi-row Fetch (MRF) feature behave as it does in Db2 for z/OS. The DB2_CURSOR_MRF_ZOS registry variable can now make Db2 behave like Db2 for z/OS when the multi-row fetch (MRF) feature is used. When set to FALSE, the registry variable behaves as it was designed in previous versions: The final fetch returns 0 rows and a sqlcode of 100. When set to TRUE, it now behaves like Db2 for z/OS when running a multi-row fetch; The final fetch returns a sqlcode of 100 and the number of rows fetched. The exception to this result is when there is an edge case, where the number of rows is equal to the array size.