Browse Source

vlib(pg): fix typo in SQL statement

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@58291 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 11 years ago
parent
commit
cf18cd6ef6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/vector/Vlib/open_pg.c

+ 1 - 1
lib/vector/Vlib/open_pg.c

@@ -1368,7 +1368,7 @@ int Vect__load_plus_pg(struct Map_info *Map, int head_only)
         sprintf(stmt,
                 "SELECT node_id,tt.geom,containing_face,ft.%s FROM "
                 "\"%s\".node AS tt LEFT JOIN \"%s\" AS ft ON "
-                "(%s).type = 3 AND (%s).id = containing_face WHERE containing_face"
+                "(%s).type = 3 AND (%s).id = containing_face WHERE containing_face "
                 "IS NOT NULL AND node_id NOT IN "
                 "(SELECT node FROM (SELECT start_node AS node FROM \"%s\".edge "
                 "GROUP BY start_node UNION ALL SELECT end_node AS node FROM "