SQLCopyDesc returns SQL_SUCCESS instead of HY010(Function sequence error)

"G, Hemanth Kumar" <[email protected]>
Newsgroups gmane.comp.db.unixodbc.devel
Message-ID <DB5CCE49324ED540B132892B8F28924901F8C4B9@susday7667.TD.teradata.com>
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

_______________________________________________
unixODBC-dev mailing list
[email protected]
http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.