From: George Tasker Date: Sat, 6 Nov 1999 17:09:35 +0000 (+0000) Subject: Renamed FWD_ONLY_CURSORS to wxODBC_FWD_ONLY_CURSORS to avoid conflicts with other... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/78f071b6cc53774bf78262b168b9b8f7711b1287 Renamed FWD_ONLY_CURSORS to wxODBC_FWD_ONLY_CURSORS to avoid conflicts with other libraries. The setting for this define will be included in the setup.h files so that people using the Remstar ODBC classes will now be able to use data sources/ODBC drivers that only support foward scrolling cursors (like dBase). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4403 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/db.cpp b/src/common/db.cpp index 91f822b736..a4e1776b9a 100644 --- a/src/common/db.cpp +++ b/src/common/db.cpp @@ -182,7 +182,7 @@ bool wxDB::Open(char *Dsn, char *Uid, char *AuthStr) RETCODE retcode; -#ifndef FWD_ONLY_CURSORS +#if wxODBC_FWD_ONLY_CURSORS // Specify that the ODBC cursor library be used, if needed. This must be // specified before the connection is made. diff --git a/src/common/dbtable.cpp b/src/common/dbtable.cpp index 1ee5fb07ed..ba8833b035 100644 --- a/src/common/dbtable.cpp +++ b/src/common/dbtable.cpp @@ -566,7 +566,8 @@ bool wxTable::getRec(UWORD fetchType) { RETCODE retcode; -#ifndef FWD_ONLY_CURSORS +#if wxODBC_FWD_ONLY_CURSORS + // Fetch the NEXT, PREV, FIRST or LAST record, depending on fetchType UDWORD cRowsFetched; UWORD rowStatus; @@ -576,8 +577,8 @@ bool wxTable::getRec(UWORD fetchType) else return(pDb->DispAllErrors(henv, hdbc, hstmt)); #else - // Fetch the next record from the record set + // Fetch the next record from the record set retcode = SQLFetch(hstmt); if (retcode != SQL_SUCCESS && retcode != SQL_SUCCESS_WITH_INFO) {