[GRASS-SVN] r57838 - grass/trunk/include

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Sep 25 03:39:29 PDT 2013


Author: hcho
Date: 2013-09-25 03:39:29 -0700 (Wed, 25 Sep 2013)
New Revision: 57838

Modified:
   grass/trunk/include/dbmi.h
Log:
Fall back to dbf if configured without sqlite.
Non-existing DB drivers can create unremovable vectors.


Modified: grass/trunk/include/dbmi.h
===================================================================
--- grass/trunk/include/dbmi.h	2013-09-25 10:26:59 UTC (rev 57837)
+++ grass/trunk/include/dbmi.h	2013-09-25 10:39:29 UTC (rev 57838)
@@ -17,7 +17,11 @@
 
 #define DB_VERSION "0"
 
+#ifdef HAVE_SQLITE
 #define DB_DEFAULT_DRIVER "sqlite"
+#else
+#define DB_DEFAULT_DRIVER "dbf"
+#endif
 
 /* DB Prodedure Numbers */
 #define DB_PROC_VERSION                 999



More information about the grass-commit mailing list