[GRASS-SVN] r50083 - grass/trunk/vector/v.overlay
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Jan 7 07:54:41 EST 2012
Author: mmetz
Date: 2012-01-07 04:54:41 -0800 (Sat, 07 Jan 2012)
New Revision: 50083
Modified:
grass/trunk/vector/v.overlay/main.c
Log:
v.overlay: DB_SQL_TYPE_TEXT != DB_SQL_TYPE_UNKNOWN; fix messages
Modified: grass/trunk/vector/v.overlay/main.c
===================================================================
--- grass/trunk/vector/v.overlay/main.c 2012-01-07 12:53:35 UTC (rev 50082)
+++ grass/trunk/vector/v.overlay/main.c 2012-01-07 12:54:41 UTC (rev 50083)
@@ -326,6 +326,9 @@
sprintf(buf, "varchar(%d)", db_get_column_length(Column));
db_append_string(&col_defs, buf);
break;
+ case DB_SQL_TYPE_TEXT:
+ db_append_string(&col_defs, "varchar(250)");
+ break;
case DB_SQL_TYPE_SMALLINT:
case DB_SQL_TYPE_INTEGER:
db_append_string(&col_defs, "integer");
@@ -347,8 +350,8 @@
db_append_string(&col_defs, "datetime");
break;
default:
- G_warning(_("Unknown column type '%s'"),
- db_get_column_name(Column));
+ G_warning(_("Unknown column type '%s' of column '%s'"),
+ db_sqltype_name(sqltype), db_get_column_name(Column));
sprintf(buf, "varchar(250)");
}
}
@@ -412,8 +415,8 @@
}
break;
default:
- G_warning(_("Unknown column type '%s' values lost"),
- db_get_column_name(Column));
+ G_warning(_("Unknown column type '%s' of culumn '%s', values lost"),
+ db_sqltype_name(sqltype), db_get_column_name(Column));
db_append_string(&sql, "null");
}
}
More information about the grass-commit
mailing list