Skip to Content
author's profile photo Former Member
Former Member

-4000: Unknown result table and BLOB

MAXDB 7.7.07.16. SQLDBC

Hello,

I have a table with a blob.

I create a recordset, and for each row, I update the row. The resultset fetchsize is 1

If the first update statement updates the blob, the next fetch on the recordset returns the error -4000: Unknown result table

if the update statement does not update de blob, the next fetch works.

if the cursor resultset type is FOWARD_ONLY it works with de BLOB

if the cursor resultset type is SCROLL_SENSITIVE or SCROLL_INSENSITIVE it does not work with de BLOB.

Of course I need SCROLL_INSENSITIVE cursor.

For information select and update are not executed on the same connection, and I commit transaction manually.

I use SQLDBC, in the documentation i find this parameter SQLDBC::SQLDBC_Statement::HoldabilityType

1) could holdability solve my issue ?

2) how can I use it ?

enum SQLDBC::SQLDBC_Statement::HoldabilityType

Enumerator:

CURSOR_HOLD_OVER_COMMIT The result persists after a COMMIT command.

CURSOR_CLOSE_ON_COMMIT The result is closed on COMMIT.

Definition at line 2297 of file SQLDBC.h.

Thanks for any help.

Yann

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jul 05, 2010 at 12:16 PM

    Hello,

    I fix my issue. I set a cursor name for my statement and the result table is not closed anymore.

    Thanks.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.