[GRASS-SVN] r65137 - grass/trunk/vector/v.colors
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Apr 25 13:19:38 PDT 2015
Author: martinl
Date: 2015-04-25 13:19:38 -0700 (Sat, 25 Apr 2015)
New Revision: 65137
Modified:
grass/trunk/vector/v.colors/write_rgb.c
Log:
v.colors: do not escape table name (breaks tables with schema)
Modified: grass/trunk/vector/v.colors/write_rgb.c
===================================================================
--- grass/trunk/vector/v.colors/write_rgb.c 2015-04-25 18:13:56 UTC (rev 65136)
+++ grass/trunk/vector/v.colors/write_rgb.c 2015-04-25 20:19:38 UTC (rev 65137)
@@ -77,8 +77,8 @@
colors) == 0)
G_warning(_("No color value defined for category %d"), pval[i]);
- sprintf(buf, "UPDATE \"%s\" SET \"%s\"='%d:%d:%d' WHERE %s=%d", fi->table,
- column_name, red, grn, blu, fi->key, pval[i]);
+ sprintf(buf, "UPDATE %s SET \"%s\"='%d:%d:%d' WHERE %s=%d", fi->table,
+ column_name, red, grn, blu, fi->key, pval[i]);
G_debug(3, "\tSQL: %s", buf);
db_set_string(&stmt, buf);
More information about the grass-commit
mailing list