src/server/plugins/postgresql/webdav.c

branch
webdav
changeset 312
f7544e220a0f
parent 311
e676ed461b5b
child 313
3ad0b65ec838
equal deleted inserted replaced
311:e676ed461b5b 312:f7544e220a0f
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) {
461 } 461 }
462 462
463 463
464 } 464 }
465 465
466
467
468 return 0; 466 return 0;
469 } 467 }
470 468
471 int pg_dav_propfind_finish(WebdavPropfindRequest *rq) { 469 int pg_dav_propfind_finish(WebdavPropfindRequest *rq) {
470 PgPropfind *pg = rq->userdata;
471 pool_handle_t *pool = rq->sn->pool;
472 PGresult *result = pg->result;
473
474 PQclear(result);
475
472 return 0; 476 return 0;
473 } 477 }
474 478
475 int pg_dav_proppatch_do( 479 int pg_dav_proppatch_do(
476 WebdavProppatchRequest *request, 480 WebdavProppatchRequest *request,

mercurial