[GRASS-SVN] r31724 - grass/trunk/db/drivers/sqlite
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jun 16 17:43:32 EDT 2008
Author: neteler
Date: 2008-06-16 17:43:32 -0400 (Mon, 16 Jun 2008)
New Revision: 31724
Modified:
grass/trunk/db/drivers/sqlite/fetch.c
Log:
fix trac #180
Modified: grass/trunk/db/drivers/sqlite/fetch.c
===================================================================
--- grass/trunk/db/drivers/sqlite/fetch.c 2008-06-16 16:43:13 UTC (rev 31723)
+++ grass/trunk/db/drivers/sqlite/fetch.c 2008-06-16 21:43:32 UTC (rev 31724)
@@ -147,7 +147,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