Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

 

Overview


This document describes an error that occurs during the record fetch process by using a cursor to process a select statement that returns multiple records.

 

Version


Altibase version 6.3.1 or later

 

Symptom


To process a query statement that returns multiple records, a cursor (CURSOR) must be used in the following process.

  1. DECLARE CURSOR
  2. OPEN CURSOR
  3. FETCH CURSOR
  4. CLOSE/RELEASE CURSOR

Although the cursor is used as above, the FETCH process proceeds to some extent in the CURSOR FETCH stage, and the 'ERR-410D2 (266450) Fetch out of sequence' error occurs even though there are still records to be fetched at some point.

Below is an example where an error occurs when using the cursor and the result of the error.

Example of using cursor-SESC
Example of error occurrence result

 

Cause


 

 

 

  • No labels