# HG changeset patch # User Olaf Wintermann # Date 1664029164 -7200 # Node ID f9e9f2b3e2993672b2aadd448fc99d7912a91e19 # Parent a5698877d14a32fb5245fc0aae7a1885d9f0f009 remove debug code diff -r a5698877d14a -r f9e9f2b3e299 src/server/plugins/postgresql/webdav.c --- a/src/server/plugins/postgresql/webdav.c Fri Sep 09 20:17:23 2022 +0200 +++ b/src/server/plugins/postgresql/webdav.c Sat Sep 24 16:19:24 2022 +0200 @@ -1197,11 +1197,6 @@ snprintf(resource_id_str, 32, "%" PRId64, proppatch->resource_id); params[0] = resource_id_str; - printf("insert\n\n"); - printf("arg0: %s\narg1: %s\n", params[0], params[1]); - printf("%s\n\n", sql->space); - - PGresult *result = PQexecParams( pgdav->connection, sql->space, @@ -1218,7 +1213,6 @@ if(PQresultStatus(result) == PGRES_COMMAND_OK) { // command ok, check if any row was updated char *nrows_affected = PQcmdTuples(result); - printf("insert nrows: %s\n", nrows_affected); if(nrows_affected[0] == '1') { ret = 0; } else { @@ -1252,8 +1246,6 @@ snprintf(resource_id_str, 32, "%" PRId64, proppatch->resource_id); params[0] = resource_id_str; - printf("update\n"); - PGresult *result = PQexecParams( pgdav->connection, sql->space, @@ -1270,7 +1262,6 @@ if(PQresultStatus(result) == PGRES_COMMAND_OK) { // command ok, check if any row was updated char *nrows_affected = PQcmdTuples(result); - printf("nrows: %s\n", nrows_affected); if(nrows_affected[0] == '1') { ret = 0; } else if(nrows_affected[0] == '0') {