[GRASS-SVN] r39551 - grass/trunk/lib/db/dbmi_client
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Oct 17 13:29:13 EDT 2009
Author: martinl
Date: 2009-10-17 13:29:12 -0400 (Sat, 17 Oct 2009)
New Revision: 39551
Modified:
grass/trunk/lib/db/dbmi_client/c_openselect.c
grass/trunk/lib/db/dbmi_client/select.c
Log:
cosmetics in dbmi (client)
Modified: grass/trunk/lib/db/dbmi_client/c_openselect.c
===================================================================
--- grass/trunk/lib/db/dbmi_client/c_openselect.c 2009-10-17 16:49:37 UTC (rev 39550)
+++ grass/trunk/lib/db/dbmi_client/c_openselect.c 2009-10-17 17:29:12 UTC (rev 39551)
@@ -18,10 +18,13 @@
/*!
\brief Open select cursor
+ Open modes:
+ - DB_SEQUENTIAL
+
\param driver db driver
\param select SQL select statement
\param cursor db cursor to be opened
- \param mode open mode (?)
+ \param mode open mode
\return DB_OK on success
\return DB_FAILED on failure
Modified: grass/trunk/lib/db/dbmi_client/select.c
===================================================================
--- grass/trunk/lib/db/dbmi_client/select.c 2009-10-17 16:49:37 UTC (rev 39550)
+++ grass/trunk/lib/db/dbmi_client/select.c 2009-10-17 17:29:12 UTC (rev 39551)
@@ -134,6 +134,9 @@
table = db_get_cursor_table(&cursor);
column = db_get_table_column(table, 0); /* first column */
+ if (column == NULL) {
+ return -1;
+ }
value = db_get_column_value(column);
type = db_get_column_sqltype(column);
type = db_sqltype_to_Ctype(type);
More information about the grass-commit
mailing list