[GRASS-SVN] r31726 - grass/branches/releasebranch_6_3/db/drivers/sqlite

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Jun 16 17:45:44 EDT 2008


Author: neteler
Date: 2008-06-16 17:45:44 -0400 (Mon, 16 Jun 2008)
New Revision: 31726

Modified:
   grass/branches/releasebranch_6_3/db/drivers/sqlite/fetch.c
Log:
fix trac #180 (merge from trunk)

Modified: grass/branches/releasebranch_6_3/db/drivers/sqlite/fetch.c
===================================================================
--- grass/branches/releasebranch_6_3/db/drivers/sqlite/fetch.c	2008-06-16 21:43:44 UTC (rev 31725)
+++ grass/branches/releasebranch_6_3/db/drivers/sqlite/fetch.c	2008-06-16 21:45:44 UTC (rev 31726)
@@ -144,7 +144,7 @@
 
 	switch ( litetype ) {
 	    case SQLITE_TEXT:
-		if (sqltype == 6 ) { /* date string */
+		if (sqltype == DB_SQL_TYPE_DATE ) { /* date string */
 		   /* Example: '1999-01-25' */
 		   G_debug(3, "sqlite fetched date: %s",sqlite3_column_text ( c->statement, col));
 		   ns = sscanf((char *) sqlite3_column_text ( c->statement, col), "%4d-%2d-%2d",



More information about the grass-commit mailing list