aboutsummaryrefslogtreecommitdiff
path: root/src/datacache/plugin_datacache_postgres.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-06-11 01:23:16 +0200
committerChristian Grothoff <christian@grothoff.org>2017-06-11 01:33:02 +0200
commitc90ae1921559d990c179800ac392b0a5358758fb (patch)
treec696cf7e8a8d2f66d24eb221251ab0c05f7c948f /src/datacache/plugin_datacache_postgres.c
parentd71e2f3b35de7fcce36806bdad44ecf4114f6740 (diff)
rename GNUNET_PQ_QueryStatus to GNUNET_DB_QueryStatus
Diffstat (limited to 'src/datacache/plugin_datacache_postgres.c')
-rw-r--r--src/datacache/plugin_datacache_postgres.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/datacache/plugin_datacache_postgres.c b/src/datacache/plugin_datacache_postgres.c
index c99f5fd682..5c497cdf8e 100644
--- a/src/datacache/plugin_datacache_postgres.c
+++ b/src/datacache/plugin_datacache_postgres.c
@@ -170,7 +170,7 @@ postgres_plugin_put (void *cls,
path_info_len * sizeof (struct GNUNET_PeerIdentity)),
GNUNET_PQ_query_param_end
};
- enum GNUNET_PQ_QueryStatus ret;
+ enum GNUNET_DB_QueryStatus ret;
ret = GNUNET_PQ_eval_prepared_non_select (plugin->dbh,
"put",
@@ -311,7 +311,7 @@ postgres_plugin_get (void *cls,
GNUNET_PQ_query_param_uint32 (&type32),
GNUNET_PQ_query_param_end
};
- enum GNUNET_PQ_QueryStatus res;
+ enum GNUNET_DB_QueryStatus res;
struct HandleResultContext hr_ctx;
hr_ctx.iter = iter;
@@ -354,7 +354,7 @@ postgres_plugin_del (void *cls)
&key),
GNUNET_PQ_result_spec_end
};
- enum GNUNET_PQ_QueryStatus res;
+ enum GNUNET_DB_QueryStatus res;
struct GNUNET_PQ_QueryParam dparam[] = {
GNUNET_PQ_query_param_uint32 (&oid),
GNUNET_PQ_query_param_end
@@ -366,7 +366,7 @@ postgres_plugin_del (void *cls)
rs);
if (0 > res)
return GNUNET_SYSERR;
- if (GNUNET_PQ_STATUS_SUCCESS_NO_RESULTS == res)
+ if (GNUNET_DB_STATUS_SUCCESS_NO_RESULTS == res)
{
/* no result */
LOG (GNUNET_ERROR_TYPE_DEBUG,
@@ -412,7 +412,7 @@ postgres_plugin_get_random (void *cls,
struct GNUNET_PeerIdentity *path;
struct GNUNET_HashCode key;
uint32_t type;
- enum GNUNET_PQ_QueryStatus res;
+ enum GNUNET_DB_QueryStatus res;
struct GNUNET_PQ_QueryParam params[] = {
GNUNET_PQ_query_param_uint32 (&off),
GNUNET_PQ_query_param_end
@@ -448,7 +448,7 @@ postgres_plugin_get_random (void *cls,
GNUNET_break (0);
return 0;
}
- if (GNUNET_PQ_STATUS_SUCCESS_NO_RESULTS == res)
+ if (GNUNET_DB_STATUS_SUCCESS_NO_RESULTS == res)
{
GNUNET_break (0);
return 0;
@@ -595,7 +595,7 @@ postgres_plugin_get_closest (void *cls,
GNUNET_PQ_query_param_uint32 (&num_results32),
GNUNET_PQ_query_param_end
};
- enum GNUNET_PQ_QueryStatus res;
+ enum GNUNET_DB_QueryStatus res;
struct ExtractResultContext erc;
erc.iter = iter;
@@ -611,7 +611,7 @@ postgres_plugin_get_closest (void *cls,
"Ending iteration (postgres error)\n");
return 0;
}
- if (GNUNET_PQ_STATUS_SUCCESS_NO_RESULTS == res)
+ if (GNUNET_DB_STATUS_SUCCESS_NO_RESULTS == res)
{
/* no result */
LOG (GNUNET_ERROR_TYPE_DEBUG,