2012-09-27 16:01 UTC+0200 Viktor Szakats (harbour syenar.net)

* contrib/rddads/rddads.h
    ! fixed version detection for ADS 6.00 and 6.10/6.11
      Thanks to jb for providing the header file.

  * contrib/rddads/ads1.c
    ! fixed for ADS 6.00

  * contrib/rddads/adsfunc.c
    ! fixed for ADS older than 6.00
This commit is contained in:
Viktor Szakats
2012-09-27 14:08:49 +00:00
parent a15b3d33af
commit 43216a289d
4 changed files with 18 additions and 3 deletions

View File

@@ -16,6 +16,17 @@
The license applies to all entries newer than 2009-04-28.
*/
2012-09-27 16:01 UTC+0200 Viktor Szakats (harbour syenar.net)
* contrib/rddads/rddads.h
! fixed version detection for ADS 6.00 and 6.10/6.11
Thanks to jb for providing the header file.
* contrib/rddads/ads1.c
! fixed for ADS 6.00
* contrib/rddads/adsfunc.c
! fixed for ADS older than 6.00
2012-09-27 15:31 UTC+0200 Viktor Szakats (harbour syenar.net)
* contrib/gtwvg/combobox.prg
* contrib/gtwvg/listbox.prg

View File

@@ -2113,7 +2113,7 @@ static HB_ERRCODE adsFlush( ADSAREAP pArea )
if( !pArea->fReadonly )
{
AdsWriteRecord( pArea->hTable );
#if ADS_LIB_VERSION >= 600
#if ADS_LIB_VERSION >= 610
if( hb_setGetL( HB_SET_HARDCOMMIT ) )
AdsFlushFileBuffers( pArea->hTable );
#endif
@@ -3966,7 +3966,7 @@ static HB_ERRCODE adsOrderListClear( ADSAREAP pArea )
{
HB_TRACE(HB_TR_DEBUG, ("adsOrderListClear(%p)", pArea));
#if ADS_LIB_VERSION >= 600
#if ADS_LIB_VERSION >= 610
if( !pArea->fReadonly )
AdsFlushFileBuffers( pArea->hTable ); /* meaningful with local server; ignored by remote server */
#endif

View File

@@ -1986,10 +1986,12 @@ HB_FUNC( ADSDDSETDATABASEPROPERTY )
}
#endif
/* Boolean properties */
#if ADS_LIB_VERSION >= 600
case ADS_DD_LOG_IN_REQUIRED:
case ADS_DD_VERIFY_ACCESS_RIGHTS:
case ADS_DD_ENCRYPT_NEW_TABLE:
case ADS_DD_ENABLE_INTERNET:
#endif
#if ADS_LIB_VERSION >= 710
case ADS_DD_LOGINS_DISABLED:
#endif

View File

@@ -92,8 +92,10 @@
#define _ADS_LIB_VERSION 700
#elif defined( ADS_COMPRESS_ALWAYS )
#define _ADS_LIB_VERSION 620
#elif defined( ADS_READ_ALL_COLUMNS )
#define _ADS_LIB_VERSION 610
#elif defined( ADS_USER_DEFINED )
#define _ADS_LIB_VERSION 611
#define _ADS_LIB_VERSION 600
#else
#define _ADS_LIB_VERSION 500
#endif