浏览代码

vlib/pg: fix writing attributes

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@58395 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 11 年之前
父节点
当前提交
a4d5dd7499
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      lib/vector/Vlib/write_pg.c

+ 1 - 2
lib/vector/Vlib/write_pg.c

@@ -1960,8 +1960,7 @@ char *build_insert_stmt(const struct Format_info_pg *pg_info,
     }
 
     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;