[GRASS-SVN] r30541 - grass/trunk/lib/db/dbmi_base

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Mar 13 01:14:48 EDT 2008


Author: hamish
Date: 2008-03-13 01:14:48 -0400 (Thu, 13 Mar 2008)
New Revision: 30541

Modified:
   grass/trunk/lib/db/dbmi_base/connect.c
Log:
TODO: add checks and return DB_* error code if needed

Modified: grass/trunk/lib/db/dbmi_base/connect.c
===================================================================
--- grass/trunk/lib/db/dbmi_base/connect.c	2008-03-13 04:55:49 UTC (rev 30540)
+++ grass/trunk/lib/db/dbmi_base/connect.c	2008-03-13 05:14:48 UTC (rev 30541)
@@ -11,6 +11,8 @@
 db_set_connection (dbConnection *connection)
 
 {
+/* TODO: add checks and return DB_* error code if needed */
+
     if ( connection->driverName )
 	G_setenv2("DB_DRIVER", connection->driverName, G_VAR_MAPSET);
 
@@ -50,6 +52,8 @@
 db_get_connection (dbConnection *connection)
 
 {
+/* TODO: add checks and return DB_* error code if needed */
+
     connection->driverName = G__getenv2("DB_DRIVER", G_VAR_MAPSET);
     connection->databaseName = G__getenv2("DB_DATABASE", G_VAR_MAPSET);    
     connection->schemaName = G__getenv2("DB_SCHEMA", G_VAR_MAPSET);    



More information about the grass-commit mailing list