Created
January 30, 2013 08:45
-
-
Save eseifert/4671724 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/wfs/wfs_get_feature.c b/src/wfs/wfs_get_feature.c | |
index 83dcd99..e1c8254 100644 | |
--- a/src/wfs/wfs_get_feature.c | |
+++ b/src/wfs/wfs_get_feature.c | |
@@ -769,7 +769,7 @@ static void wfs_geojson_display_results(ows * o, wfs_request * wr, mlist * reque | |
list_node *ln, *ll; | |
array *prop_table; | |
array_node *an; | |
- buffer *prop, *value_enc, *geom, *id_name; | |
+ buffer *prop, *value_enc, *geom, *id_name, *id_column; | |
bool first_row, first_col; | |
int i,j; | |
int geoms; | |
@@ -806,10 +806,11 @@ static void wfs_geojson_display_results(ows * o, wfs_request * wr, mlist * reque | |
prop_table = ows_psql_describe_table(o, ll->value); | |
first_row = true; | |
- id_name = ows_psql_id_column(o, ll->value); | |
+ id_column = ows_psql_id_column(o, ll->value); | |
number = -1; | |
- if (id_name && id_name->use) | |
- number = PQfnumber(res, id_name->buf); | |
+ if (id_column && id_column->use) | |
+ number = PQfnumber(res, id_column->buf); | |
+ | |
buffer_empty(id_name); | |
for (i=0 ; i < PQntuples(res) ; i++) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment