[fdo-commits] r189 - trunk/Providers/SDF/Src/Provider

svn_fdo at osgeo.org svn_fdo at osgeo.org
Mon Jan 15 11:56:32 EST 2007


Author: brentrobinson
Date: 2007-01-15 11:56:32 -0500 (Mon, 15 Jan 2007)
New Revision: 189

Modified:
   trunk/Providers/SDF/Src/Provider/KeyDb.cpp
Log:
Ported from 3.2.x branch

Modified: trunk/Providers/SDF/Src/Provider/KeyDb.cpp
===================================================================
--- trunk/Providers/SDF/Src/Provider/KeyDb.cpp	2007-01-15 16:46:26 UTC (rev 188)
+++ trunk/Providers/SDF/Src/Provider/KeyDb.cpp	2007-01-15 16:56:32 UTC (rev 189)
@@ -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