Added support for creating forward or backward scrolling cursors support at run-time versus compile time. Default behavior will be determined by wxODBC_FWD_ONLY_CURSORS set in setup.h
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4767 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -157,12 +157,14 @@ public:
|
||||
bool QueryOnKeyFields(bool forUpdate = FALSE, bool distinct = FALSE);
|
||||
bool GetNext(void) { return(getRec(SQL_FETCH_NEXT)); }
|
||||
bool operator++(int) { return(getRec(SQL_FETCH_NEXT)); }
|
||||
#if !wxODBC_FWD_ONLY_CURSORS
|
||||
bool GetPrev(void) { return(getRec(SQL_FETCH_PRIOR)); }
|
||||
bool operator--(int) { return(getRec(SQL_FETCH_PRIOR)); }
|
||||
bool GetFirst(void) { return(getRec(SQL_FETCH_FIRST)); }
|
||||
bool GetLast(void) { return(getRec(SQL_FETCH_LAST)); }
|
||||
#endif
|
||||
|
||||
/***** These four functions only work with wxDB instances that are defined *****
|
||||
***** as not being FwdOnlyCursors *****/
|
||||
bool GetPrev(void);
|
||||
bool operator--(int);
|
||||
bool GetFirst(void);
|
||||
bool GetLast(void);
|
||||
|
||||
bool IsCursorClosedOnCommit(void);
|
||||
bool IsColNull(int colNo);
|
||||
UWORD GetRowNum(void);
|
||||
|
Reference in New Issue
Block a user