From 9695185a70ba2c852feef016c6b0b5168f77bf83 Mon Sep 17 00:00:00 2001 From: George Tasker Date: Sat, 6 Nov 1999 17:50:34 +0000 Subject: [PATCH] Added wxODBC_FWD_ONLY_CURSORS to allow for drivers/data sources that only support forward scrolling cursors git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4407 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/gtk/setup0.h | 1 + include/wx/gtk1/setup0.h | 1 + include/wx/mac/setup.h | 14 ++++++++++++-- include/wx/motif/setup0.h | 1 + include/wx/msw/setup0.h | 8 ++++++++ include/wx/os2/setup0.h | 12 ++++++++++-- include/wx/stubs/setup.h | 13 +++++++++++-- 7 files changed, 44 insertions(+), 6 deletions(-) diff --git a/include/wx/gtk/setup0.h b/include/wx/gtk/setup0.h index 56309bccfa..cca48903c0 100644 --- a/include/wx/gtk/setup0.h +++ b/include/wx/gtk/setup0.h @@ -114,6 +114,7 @@ * Use iODBC */ #define wxUSE_ODBC 0 +#define wxODBC_FWD_ONLY_CURSORS 1 /* * Use Threads */ diff --git a/include/wx/gtk1/setup0.h b/include/wx/gtk1/setup0.h index 56309bccfa..cca48903c0 100644 --- a/include/wx/gtk1/setup0.h +++ b/include/wx/gtk1/setup0.h @@ -114,6 +114,7 @@ * Use iODBC */ #define wxUSE_ODBC 0 +#define wxODBC_FWD_ONLY_CURSORS 1 /* * Use Threads */ diff --git a/include/wx/mac/setup.h b/include/wx/mac/setup.h index 2498112208..a538bafcb0 100644 --- a/include/wx/mac/setup.h +++ b/include/wx/mac/setup.h @@ -116,8 +116,18 @@ #define wxUSE_C_MAIN 0 // Set to 1 to use main.c instead of main.cpp (UNIX only) -#define wxUSE_ODBC 0 - // Define 1 to use ODBC classes +#define wxUSE_ODBC 0 + // Define 1 to use ODBC classes + +#define wxODBC_FWD_ONLY_CURSORS 1 + // Some databases/ODBC drivers only allow forward scrolling cursors. + // Unless you specifically want to use backward scrolling + // cursors, and you know that all of the databases/ODBC drivers + // that you will use these odbc classes with allow backward + // scrolling cursors, this setting should remain set to 1 + // for maximum database/driver compatibilty + + #define wxUSE_IOSTREAMH 0 // VC++ 4.2 and above allows and diff --git a/include/wx/motif/setup0.h b/include/wx/motif/setup0.h index 24dd35bd96..d90ef467d1 100644 --- a/include/wx/motif/setup0.h +++ b/include/wx/motif/setup0.h @@ -77,6 +77,7 @@ * Use iODBC */ #define wxUSE_ODBC 0 +#define wxODBC_FWD_ONLY_CURSORS 1 /* * Use Threads */ diff --git a/include/wx/msw/setup0.h b/include/wx/msw/setup0.h index d853492a2b..a9e132d600 100644 --- a/include/wx/msw/setup0.h +++ b/include/wx/msw/setup0.h @@ -173,6 +173,14 @@ #define wxUSE_ODBC 0 // Define 1 to use ODBC classes +#define wxODBC_FWD_ONLY_CURSORS 1 + // Some databases/ODBC drivers only allow forward scrolling cursors. + // Unless you specifically want to use backward scrolling + // cursors, and you know that all of the databases/ODBC drivers + // that you will use these odbc classes with allow backward + // scrolling cursors, this setting should remain set to 1 + // for maximum database/driver compatibilty + #ifndef __MWERKS__ #define wxUSE_IOSTREAMH 1 #else diff --git a/include/wx/os2/setup0.h b/include/wx/os2/setup0.h index f3c14fe123..802b4b91da 100644 --- a/include/wx/os2/setup0.h +++ b/include/wx/os2/setup0.h @@ -166,8 +166,16 @@ // Set this to 0 if your compiler can't cope // with omission of prototype parameters. -#define wxUSE_ODBC 0 - // Define 1 to use ODBC classes +#define wxUSE_ODBC 0 + // Define 1 to use ODBC classes + +#define wxODBC_FWD_ONLY_CURSORS 1 + // Some databases/ODBC drivers only allow forward scrolling cursors. + // Unless you specifically want to use backward scrolling + // cursors, and you know that all of the databases/ODBC drivers + // that you will use these odbc classes with allow backward + // scrolling cursors, this setting should remain set to 1 + // for maximum database/driver compatibilty #define wxUSE_IOSTREAMH 1 // VC++ 4.2 and above allows and diff --git a/include/wx/stubs/setup.h b/include/wx/stubs/setup.h index c11c00ae61..b791618903 100644 --- a/include/wx/stubs/setup.h +++ b/include/wx/stubs/setup.h @@ -99,8 +99,17 @@ #define wxUSE_C_MAIN 0 // Set to 1 to use main.c instead of main.cpp (UNIX only) -#define wxUSE_ODBC 0 - // Define 1 to use ODBC classes +#define wxUSE_ODBC 0 + // Define 1 to use ODBC classes + +#define wxODBC_FWD_ONLY_CURSORS 1 + // Some databases/ODBC drivers only allow forward scrolling cursors. + // Unless you specifically want to use backward scrolling + // cursors, and you know that all of the databases/ODBC drivers + // that you will use these odbc classes with allow backward + // scrolling cursors, this setting should remain set to 1 + // for maximum database/driver compatibilty + #define wxUSE_IOSTREAMH 1 // VC++ 4.2 and above allows and -- 2.45.2