[GRASS-SVN] r58395 - grass/trunk/lib/vector/Vlib

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Dec 5 10:43:49 PST 2013


Author: martinl
Date: 2013-12-05 10:43:49 -0800 (Thu, 05 Dec 2013)
New Revision: 58395

Modified:
   grass/trunk/lib/vector/Vlib/write_pg.c
Log:
vlib/pg: fix writing attributes


Modified: grass/trunk/lib/vector/Vlib/write_pg.c
===================================================================
--- grass/trunk/lib/vector/Vlib/write_pg.c	2013-12-05 18:42:42 UTC (rev 58394)
+++ grass/trunk/lib/vector/Vlib/write_pg.c	2013-12-05 18:43:49 UTC (rev 58395)
@@ -1960,8 +1960,7 @@
     }
 
     stmt = NULL;
-    if (Fi && strcmp(pg_info->table_name, Fi->table) != 0 && /* skip PostGIS Topology in write mode */
-        cat > -1) {
+    if (Fi && cat > -1) {
         /* write attributes (simple features and topology elements) */
         int col, ncol, more;
         int sqltype, ctype, is_fid;



More information about the grass-commit mailing list