2015-02-17 17:22 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)

* src/rdd/dbf1.c
    * modified code which tries to detect if field flags were used in DBF
      header for autoinc numeric fields
This commit is contained in:
Przemysław Czerpak
2015-02-17 17:22:57 +01:00
parent 9347e5ab4e
commit 094b3e6faa
2 changed files with 15 additions and 0 deletions

View File

@@ -10,6 +10,11 @@
* Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment
*/
2015-02-17 17:22 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/rdd/dbf1.c
* modified code which tries to detect if field flags were used in DBF
header for autoinc numeric fields
2015-02-17 16:35 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/rdd/dbf1.c
+ added support for autoincrement fields with counter longer then 4 bytes

View File

@@ -4228,6 +4228,16 @@ static HB_ERRCODE hb_dbfOpen( DBFAREAP pArea, LPDBOPENINFO pOpenInfo )
case 'N':
if( pField->bFieldFlags & ~( HB_FF_NULLABLE | HB_FF_AUTOINC ) )
uiFlags = 0;
else if( ( pField->bFieldFlags & HB_FF_AUTOINC ) != 0 )
{
if( HB_GET_LE_UINT32( pField->bReserved1 ) != 0 ||
( pField->bLen - ( pField->bDec ? pField->bDec + 1 : 0 ) > 9 ?
HB_GET_LE_UINT32( pField->bCounter ) != 0 :
( ( uiCount > 0 && HB_GET_LE_UINT32( pField->bReserved2 ) != 0 ) ||
HB_GET_LE_UINT32( &pField->bReserved2[ 4 ] ) != 0 ) ) )
uiFlags = 0;
break;
}
case 'C':
case 'M':
case 'V':