G, Hemanth Kumar wrote: > > Hello again, > > When SQLFreeStmt with an invalid option is called after > SQLExecDirect with SQL_NEED_DATA, it should ideally return HY092 > (Option type out of range). > > But returns HY010 (Function sequence error). > Easy enough, I have changed the order of checks. Try now. -- Nick