[GRASS-SVN] r71455 - grass/trunk/vector/v.in.ogr
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Aug 31 10:48:46 PDT 2017
Author: mmetz
Date: 2017-08-31 10:48:46 -0700 (Thu, 31 Aug 2017)
New Revision: 71455
Modified:
grass/trunk/vector/v.in.ogr/main.c
Log:
v.in.ogr: use correct key column name
Modified: grass/trunk/vector/v.in.ogr/main.c
===================================================================
--- grass/trunk/vector/v.in.ogr/main.c 2017-08-31 17:14:02 UTC (rev 71454)
+++ grass/trunk/vector/v.in.ogr/main.c 2017-08-31 17:48:46 UTC (rev 71455)
@@ -1690,9 +1690,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