2002-10-25 11:38 UTC+0300 Alexander Kresin <alex@belacy.belgorod.su>

This commit is contained in:
Alexander S.Kresin
2002-10-25 07:35:22 +00:00
parent 3269a71d02
commit 199cd82230
2 changed files with 12 additions and 2 deletions

View File

@@ -8,6 +8,12 @@
2002-12-01 23:12 UTC+0100 Foo Bar <foo.bar@foobar.org>
*/
2002-10-25 11:38 UTC+0300 Alexander Kresin <alex@belacy.belgorod.su>
* source/rdd/dbfntx/dbfntx1.c
! Few fixes, related to codepages support
! Bug fixed ( setting controlling index doesn't caused movement to the
top logical record before )
2002-10-24 15:00 UTC-0300 Walter Negro <anegro@overnet.com.ar>
* source/Makefile
! Add codepage to compilation

View File

@@ -3025,6 +3025,7 @@ static ERRCODE ntxSeek( NTXAREAP pArea, BOOL bSoftSeek, PHB_ITEM pKey, BOOL bFin
return retvalue;
}
strncpy( pKey2->key, pKey->item.asString.value, pTag->KeyLength );
hb_cdpnTranslate( pKey2->key, s_cdpage, pArea->cdPage, pTag->KeyLength );
break;
case HB_IT_INTEGER:
case HB_IT_LONG:
@@ -3894,6 +3895,8 @@ static ERRCODE ntxOrderListAdd( NTXAREAP pArea, LPDBORDERINFO pOrderInfo )
pIndex->IndexName[0] = '\0';
strncat( pIndex->IndexName, szFileName, _POSIX_PATH_MAX );
if( !pArea->lpCurTag )
pArea->lpCurTag = pIndex->CompoundTag;
if( pArea->lpNtxTag )
{
pIndex->CompoundTag->TagRoot++;
@@ -3908,9 +3911,9 @@ static ERRCODE ntxOrderListAdd( NTXAREAP pArea, LPDBORDERINFO pOrderInfo )
else
{
pArea->lpNtxTag = pIndex->CompoundTag;
SELF_GOTOP( ( AREAP ) pArea );
}
if( !pArea->lpCurTag )
pArea->lpCurTag = pIndex->CompoundTag;
hb_xfree( szFileName );
hb_xfree( pFileName );
return SUCCESS;
@@ -4035,6 +4038,7 @@ static ERRCODE ntxSetScope( NTXAREAP pArea, LPDBORDSCOPEINFO sInfo )
if( *ppItem == NULL )
*ppItem = hb_itemNew( NULL );
hb_itemCopy( *ppItem, sInfo->scopeValue );
hb_cdpnTranslate( (*ppItem)->item.asString.value, s_cdpage, pArea->cdPage, (*ppItem)->item.asString.length );
}
break;
case HB_IT_INTEGER: