Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Informix
Expertise: Beginner
Mar 26, 2000

Error Code When Executing Program

Question:
I am receiving an error code of 0400 when a program is executing. I have been told that this is an SQL error code; however, none of the books I have access to shows this code.

Please let me know if you know what this is referring to.

Answer:
If this is an Informix error code. The following is excerpted from the Informix finderr command:

    -400:
    Fetch attempted on unopen cursor.

    This FETCH statement names a cursor that has never been opened or has been closed. Review the program logic, and check that it will open the cursor before this point and not accidentally close it. Unless a cursor is declared WITH HOLD, it is automatically closed by a COMMIT WORK or ROLLBACK WORK statement.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap