X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0b0ca94c89cd157b6014e987f631610ecbf623a8..a05da1b6827f40c0beb97225e9861356343e196b:/include/wx/dbtable.h diff --git a/include/wx/dbtable.h b/include/wx/dbtable.h index b4f15a52fa..79cb77f90c 100644 --- a/include/wx/dbtable.h +++ b/include/wx/dbtable.h @@ -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);