Informix CLOSE – PB Docs 126

Informix CLOSE

If a database stored procedure returns a result set, it must
be closed when processing is complete.

note.png Do you have to retrieve all the rows?

You do not have to retrieve all rows in a result set to close
a request or procedure.

Closing a procedure looks the same as closing a cursor:

As with cursors, if a procedure executes successfully and
returns at least one result set and is not closed, a result set
is pending and no SQL commands other than the FETCH can be executed.
Procedures with result sets should be closed as soon as possible.

The procedure remains open until you close it, execute a COMMIT
or a ROLLBACK, or end the database connection.


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x