[unixODBC-dev] SQLCopyDesc returns SQL_SUCCESS instead of HY010(Function sequence error)
G, Hemanth Kumar
Hemanth.G at Teradata.com
Wed Jun 3 13:57:40 BST 2009
Hi,
I observe SQLCopyDesc() returning SQL_SUCCESS despite returning
HY010(3.0) (Function sequence error) for the below mentioned cases(state
transitions).
S8 - Function needs data. SQLParamData has not been called.
S9 - Function needs data. SQLPutData has not been called.
S10 - Function needs data. SQLPutData has been called.
S11 - Still executing.
S12 - Asynchronous execution canceled.
This is what I see in msdn odbc specifications:
--------------------------------------------------------
HY010 - Function sequence error
(DM) The descriptor handle in SourceDescHandle or TargetDescHandle was
associated with a StatementHandle for which an asynchronously executing
function (not this one) was called and was still executing when this
function was called.
(DM) The descriptor handle in SourceDescHandle or TargetDescHandle was
associated with a StatementHandle for which SQLExecute, SQLExecDirect,
SQLBulkOperations, or SQLSetPos was called and returned SQL_NEED_DATA.
This function was called before data was sent for all data-at-execution
parameters or columns
--------------------------------------------------------
Can you correct it to returning HY010 for the cases mentioned above..
Thanks,
Hemanth
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.unixodbc.org/pipermail/unixodbc-dev/attachments/20090603/5f24c1ac/attachment.html>
More information about the unixODBC-dev
mailing list