]> granicus.if.org Git - postgis/commitdiff
Fixed a bug from adding NULL support to shape dumper
authorJeff Lounsbury <jeffloun@refractions.net>
Fri, 11 Oct 2002 20:10:29 +0000 (20:10 +0000)
committerJeff Lounsbury <jeffloun@refractions.net>
Fri, 11 Oct 2002 20:10:29 +0000 (20:10 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@194 b70326c6-7e19-0410-871a-916f4a2858ee

loader/pgsql2shp.c

index 5ee186d00127933a92bea2c57420a92e8cc6d1b8..3b16d38cf4776a92b932383e81a5d8362923a590 100644 (file)
@@ -410,7 +410,9 @@ printf(conn_string);
        strcat(query, geo_col_name);
        strcat(query, ")) from ") ;
        strcat(query, table);
-       strcat(query," where NOT geometrytype(geom) = NULL");
+       strcat(query," where NOT geometrytype(");
+       strcat(query,geo_col_name);
+       strcat(query,") = NULL");
        res3 = PQexec(conn, query);     
        //printf("\n\n-->%s\n\n",query);