Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Handle to error object after calling the statement execute - SQLDBC

Topic related to SQLDBC inteface to MaxDB

=======================

In C++ while i was executing the statement

rc = stmt->execute("SELECT 'Hello SAPDB' from DUAL");

i could get a handle to the error object by a call to

stmt->error().getErrorText()

Now while using SQLDBC_C i am using

rc = SQLDBC_Statement_execute(stmt,tempstr,strlen(tempstr),encodAsciiType);

Now how do i get the handle to the error object ??

Call like the above one

fprintf(stderr, "Executed SQLDBC_Statement %s",stmt->error().getErrorText());

gives me compilation error:

error: invalid use of undefined type `struct SQLDBC_Statement'

/opt/sdb/programs/sdk/sqldbc/incl/SQLDBC_C.h:125: error: forward declaration of `struct SQLDBC_Statement'

Please Help and feel free to ask me if the question is not clear.

Regards

Raja

Former Member
Not what you were looking for? View more on this topic or Ask a question