[GRASS-SVN] r53971 - grass/trunk/db/drivers/sqlite

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Nov 22 04:24:58 PST 2012


Author: martinl
Date: 2012-11-22 04:24:58 -0800 (Thu, 22 Nov 2012)
New Revision: 53971

Modified:
   grass/trunk/db/drivers/sqlite/listdb.c
Log:
SQLite DB driver: list databases from default directory (`mapset/sqlite`) 


Modified: grass/trunk/db/drivers/sqlite/listdb.c
===================================================================
--- grass/trunk/db/drivers/sqlite/listdb.c	2012-11-22 11:31:11 UTC (rev 53970)
+++ grass/trunk/db/drivers/sqlite/listdb.c	2012-11-22 12:24:58 UTC (rev 53971)
@@ -59,6 +59,8 @@
         
         db_init_string(&spath);
         db_set_string(&spath, cpath);
+        db_append_string(&spath, "/");
+        db_append_string(&spath, "sqlite");
         G_free(cpath);
         
         if (listdb(&spath, 1, handles, count) != DB_OK)



More information about the grass-commit mailing list