[GRASS-SVN] r71456 - grass/branches/releasebranch_7_2/vector/v.in.ogr

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Aug 31 10:49:21 PDT 2017


Author: mmetz
Date: 2017-08-31 10:49:21 -0700 (Thu, 31 Aug 2017)
New Revision: 71456

Modified:
   grass/branches/releasebranch_7_2/vector/v.in.ogr/main.c
Log:
v.in.ogr: use correct key column name (backport trunk r71455)

Modified: grass/branches/releasebranch_7_2/vector/v.in.ogr/main.c
===================================================================
--- grass/branches/releasebranch_7_2/vector/v.in.ogr/main.c	2017-08-31 17:48:46 UTC (rev 71455)
+++ grass/branches/releasebranch_7_2/vector/v.in.ogr/main.c	2017-08-31 17:49:21 UTC (rev 71456)
@@ -1692,9 +1692,9 @@
 							     &Map));
 
 	    if (!delete_table) {
-		if (db_create_index2(driver, Fi->table, key_column) != DB_OK)
+		if (db_create_index2(driver, Fi->table, Fi->key) != DB_OK)
 		    G_warning(_("Unable to create index for table <%s>, key <%s>"),
-			      Fi->table, key_column);
+			      Fi->table, Fi->key);
 	    }
 	    else {
 		sprintf(buf, "drop table %s", Fi->table);



More information about the grass-commit mailing list