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:
@@ -401,8 +401,7 @@ RCODE flmAddRecord(
|
||||
pRecord->setContainerID( pLFile->uiLfNum);
|
||||
if (bKeepInCache)
|
||||
{
|
||||
if( RC_BAD( rc = flmRcaInsertRec( pDb, pLFile->uiLfNum, uiDrn,
|
||||
pRecord)))
|
||||
if( RC_BAD( rc = flmRcaInsertRec( pDb, pLFile, uiDrn, pRecord)))
|
||||
{
|
||||
// Remove the record that was added because of the error.
|
||||
|
||||
@@ -578,7 +577,7 @@ FLMEXP RCODE FLMAPI FlmRecordModify(
|
||||
|
||||
pRecord->setID( uiDrn);
|
||||
pRecord->setContainerID( uiContainer);
|
||||
if( RC_BAD( rc = flmRcaInsertRec( pDb, uiContainer, uiDrn, pRecord)))
|
||||
if( RC_BAD( rc = flmRcaInsertRec( pDb, pLFile, uiDrn, pRecord)))
|
||||
{
|
||||
goto Exit;
|
||||
}
|
||||
@@ -661,8 +660,7 @@ FLMEXP RCODE FLMAPI FlmRecordModify(
|
||||
pRecord->setID( uiDrn);
|
||||
pRecord->setContainerID( uiContainer);
|
||||
|
||||
if( RC_BAD( rc = flmRcaInsertRec( pDb, uiContainer, uiDrn,
|
||||
pRecord)))
|
||||
if( RC_BAD( rc = flmRcaInsertRec( pDb, pLFile, uiDrn, pRecord)))
|
||||
{
|
||||
if ( rc != FERR_MEM)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user