[GRASS-SVN] r40043 - grass/branches/develbranch_6/vector/v.random

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


Author: martinl
Date: 2009-12-18 09:29:43 -0500 (Fri, 18 Dec 2009)
New Revision: 40043

Modified:
   grass/branches/develbranch_6/vector/v.random/main.c
Log:
v.random: zcol bugfix
	  (merge r40042 from trunk)


Modified: grass/branches/develbranch_6/vector/v.random/main.c
===================================================================
--- grass/branches/develbranch_6/vector/v.random/main.c	2009-12-18 14:18:19 UTC (rev 40042)
+++ grass/branches/develbranch_6/vector/v.random/main.c	2009-12-18 14:29:43 UTC (rev 40043)
@@ -163,7 +163,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