Browse Source

v.colors: do not escape table name (breaks tables with schema)
(merge https://trac.osgeo.org/grass/changeset/65137 from trunk)


git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@65466 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 10 năm trước cách đây
mục cha
commit
29c9359036
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      vector/v.colors/write_rgb.c

+ 2 - 2
vector/v.colors/write_rgb.c

@@ -77,8 +77,8 @@ void write_rgb_values(const struct Map_info *Map, int layer, const char *column_
 			     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);