SQLCopyDesc returns SQL_SUCCESS instead of HY010(Function sequence error)
2009-06-03 12:57:40 GMT
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 unixODBC-dev <at> mailman.unixodbc.org http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev
RSS Feed