378 if(!util_strtoint(res_id, &resource_id)) { |
378 if(!util_strtoint(res_id, &resource_id)) { |
379 log_ereport(LOG_FAILURE, "pg_dav_propfind_do: cannot convert resource_id '%s' to int", res_id); |
379 log_ereport(LOG_FAILURE, "pg_dav_propfind_do: cannot convert resource_id '%s' to int", res_id); |
380 return 1; |
380 return 1; |
381 } |
381 } |
382 |
382 |
383 char *nodename = PQgetvalue(result, r, 3); |
383 //char *nodename = PQgetvalue(result, r, 3); |
384 if(resource_id != current_resource_id) { |
384 if(resource_id != current_resource_id) { |
385 // create a href string for the new resource |
385 // create a href string for the new resource |
386 // if the resource is a collection, it should have a trailing '/' |
386 // if the resource is a collection, it should have a trailing '/' |
387 size_t pathlen = strlen(path); |
387 size_t pathlen = strlen(path); |
388 if(pathlen == 0) { |
388 if(pathlen == 0) { |