First set of changes needed for bugzilla bug #145076. Added ability to keep a field id table for level one fields.

git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@204 0109f412-320b-0410-ab79-c3e0c5ffbbe6
This commit is contained in:
dsandersoremutah
2006-03-23 17:37:47 +00:00
parent 77fdc5ed76
commit 537e33bf24
12 changed files with 1145 additions and 28 deletions

View File

@@ -149,6 +149,7 @@ FLMEXP RCODE FLMAPI FlmDbConfig(
RCODE rc = FERR_OK;
FDB * pDb = (FDB_p)hDb;
FFILE * pFile = pDb->pFile;
LFILE * pLFile;
FLMBOOL bDbInitialized = FALSE;
FLMBOOL bStartedTrans = FALSE;
FLMBOOL bDbLocked = FALSE;
@@ -215,6 +216,7 @@ FLMEXP RCODE FLMAPI FlmDbConfig(
}
case FDB_RFL_FILE_LIMITS:
case FDB_ENABLE_FIELD_ID_TABLE:
if( RC_BAD( rc = Wire.sendNumber( WIRE_VALUE_NUMBER1,
(FLMUINT)Value1)))
{
@@ -638,6 +640,27 @@ Transmission_Error:
pDb->fnCommit = (COMMIT_FUNC)((FLMUINT)Value1);
pDb->pvCommitData = Value2;
break;
case FDB_ENABLE_FIELD_ID_TABLE:
if (pDb->pDict)
{
if (RC_BAD( rc = fdictGetContainer( pDb->pDict, (FLMUINT)Value1,
&pLFile)))
{
goto Exit;
}
pLFile->bMakeFieldIdTable = (FLMBOOL)Value2;
}
else if (pDb->pFile->pDictList)
{
if (RC_BAD( rc = fdictGetContainer( pDb->pFile->pDictList,
(FLMUINT)Value1, &pLFile)))
{
goto Exit;
}
pLFile->bMakeFieldIdTable = (FLMBOOL)Value2;
}
break;
default:
rc = RC_SET( FERR_NOT_IMPLEMENTED);