[GRASS-SVN] r40042 - grass/trunk/vector/v.random

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Dec 18 09:18:20 EST 2009


Author: martinl
Date: 2009-12-18 09:18:19 -0500 (Fri, 18 Dec 2009)
New Revision: 40042

Modified:
   grass/trunk/vector/v.random/main.c
Log:
v.random: zcol bugfix


Modified: grass/trunk/vector/v.random/main.c
===================================================================
--- grass/trunk/vector/v.random/main.c	2009-12-18 10:02:35 UTC (rev 40041)
+++ grass/trunk/vector/v.random/main.c	2009-12-18 14:18:19 UTC (rev 40042)
@@ -165,7 +165,7 @@
 	db_begin_transaction(driver);
 
 	db_init_string(&sql);
-	sprintf(buf, "create table %s (cat integer, %s)", Fi->table,
+	sprintf(buf, "create table %s (cat integer, %s double precision)", Fi->table,
 		parm.zcol->answer);
 	db_set_string(&sql, buf);
 	Vect_map_add_dblink(&Out, 1, NULL, Fi->table, "cat", Fi->database,



More information about the grass-commit mailing list