From: Alexander P. <ale...@re...> - 2009-02-12 10:08:18
|
Martijn Tonies wrote: > I noticed HY009 could signal "invalid use of null pointer", is that > correct? Generally HY009 is an invalid argument value with usage a null pointer. >> What ODBC API function is failed? It is not a message of Firebird ODBC >> driver (but "Fetch type out of range" is a message of driver. By the way >> Firebird ODBC driver supports only FORWARD ONLY and STATIC cursors in >> full). >> > > What causes "fetch type out of range"? > In SQLFetchScroll or SQLExtendedFetch, the wrong usage of an operation type: if( cursorType == SQL_CURSOR_FORWARD_ONLY && orientation != SQL_FETCH_NEXT ) return sqlReturn (SQL_ERROR, "HY106", "Fetch type out of range"); Regards, Alexander |