2003-10-24 11:50 UTC+0300 Alexander Kresin <alex@belacy.belgorod.su>

This commit is contained in:
Alexander S.Kresin
2003-10-24 07:52:43 +00:00
parent 5744e86ad2
commit 994ac134fa
2 changed files with 7 additions and 1 deletions

View File

@@ -8,6 +8,12 @@
2002-12-01 23:12 UTC+0100 Foo Bar <foo.bar@foobar.org>
*/
2003-10-24 11:50 UTC+0300 Alexander Kresin <alex@belacy.belgorod.su>
* source/rdd/dbfntx/dbfntx1.c
! Minor fix for calculating the maximum keys number in index page.
Some 3rd party engines ( Crystal Reports ) had problems opening
ntx'es, created by Harbour.
2003-10-23 15:40 UTC+0100 Ryszard Glab <rglab@przesiew.imid.med.pl>
* source/compiler/harbour.l
* fixed codeblock scanning - this should cure random GPFs

View File

@@ -2710,7 +2710,7 @@ static LPTAGINFO hb_ntxTagNew( LPNTXINDEX PIF, char * ITN, BOOL fTagName, char *
pTag->KeyType = bKeyType;
pTag->KeyLength = uiKeyLen;
pTag->KeyDec = uiKeyDec;
pTag->MaxKeys = (NTXBLOCKSIZE-6)/(uiKeyLen+10) - 1;
pTag->MaxKeys = (NTXBLOCKSIZE-3)/(uiKeyLen+10) - 1;
if( pTag->MaxKeys%2 && pTag->MaxKeys>2 )
pTag->MaxKeys--;
pTag->CurKeyInfo = hb_ntxKeyNew( NULL,pTag->KeyLength );