[fdo-commits] r188 - branches/3.2.x/Providers/SDF/Src/Provider

svn_fdo at osgeo.org svn_fdo at osgeo.org
Mon Jan 15 11:46:26 EST 2007


Author: brentrobinson
Date: 2007-01-15 11:46:26 -0500 (Mon, 15 Jan 2007)
New Revision: 188

Modified:
   branches/3.2.x/Providers/SDF/Src/Provider/KeyDb.cpp
Log:
Fixed regression from 2007/01/09 fix. Can't drop index because it is not always later regenerated.

Modified: branches/3.2.x/Providers/SDF/Src/Provider/KeyDb.cpp
===================================================================
--- branches/3.2.x/Providers/SDF/Src/Provider/KeyDb.cpp	2007-01-12 06:00:07 UTC (rev 187)
+++ branches/3.2.x/Providers/SDF/Src/Provider/KeyDb.cpp	2007-01-15 16:46:26 UTC (rev 188)
@@ -52,25 +52,6 @@
             throw FdoException::Create(NlsMsgGetMain(FDO_NLSID(SDFPROVIDER_10_ERROR_ACCESSING_SDFDB)));
         }
     }
-
-    if ( !bReadOnly ) 
-    {
-        if ( m_db->GetUseIntKey() != m_db->GetActualUseIntKey() ) {
-            // Index should be for integer key but it is actually for non-integer key, or vice versa.
-            // This is an indication that the index is corrupt, so drop and rebuild it. 
-
-            m_db->Drop();
-            m_db->close(0);
-
-            if (res = m_db->open(0, filename, (const char*)PhysName("KEY:", (const char*)PhysName(L"", dbname,false),false), (const char*) m_dbname, SQLiteDB_CREATE, 0, bUseIntKey) != 0)
-            {
-                //printf("%s\n", env->strerror(res));
-                throw FdoException::Create(NlsMsgGetMain(FDO_NLSID(SDFPROVIDER_10_ERROR_ACCESSING_SDFDB)));
-            }
-
-            m_IndexNeedsRegen = true;
-        }
-    }
 }
 
 KeyDb::~KeyDb()



More information about the fdo-commits mailing list