aboutsummaryrefslogtreecommitdiff
path: root/src/datastore/plugin_datastore_postgres.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/datastore/plugin_datastore_postgres.c')
-rw-r--r--src/datastore/plugin_datastore_postgres.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/datastore/plugin_datastore_postgres.c b/src/datastore/plugin_datastore_postgres.c
index a5f4b2c4b..3ec38c371 100644
--- a/src/datastore/plugin_datastore_postgres.c
+++ b/src/datastore/plugin_datastore_postgres.c
@@ -276,6 +276,7 @@ pq_exec (struct Plugin *plugin,
276 * Prepare SQL statement. 276 * Prepare SQL statement.
277 * 277 *
278 * @param plugin global context 278 * @param plugin global context
279 * @param name name for the prepared SQL statement
279 * @param sql SQL code to prepare 280 * @param sql SQL code to prepare
280 * @param nparams number of parameters in sql 281 * @param nparams number of parameters in sql
281 * @param line code line for error reporting 282 * @param line code line for error reporting
@@ -283,10 +284,10 @@ pq_exec (struct Plugin *plugin,
283 */ 284 */
284static int 285static int
285pq_prepare (struct Plugin *plugin, 286pq_prepare (struct Plugin *plugin,
286 const char *name, const char *sql, int nparms, int line) 287 const char *name, const char *sql, int nparams, int line)
287{ 288{
288 PGresult *ret; 289 PGresult *ret;
289 ret = PQprepare (plugin->dbh, name, sql, nparms, NULL); 290 ret = PQprepare (plugin->dbh, name, sql, nparams, NULL);
290 if (GNUNET_OK != 291 if (GNUNET_OK !=
291 check_result (plugin, 292 check_result (plugin,
292 ret, PGRES_COMMAND_OK, "PQprepare", sql, line)) 293 ret, PGRES_COMMAND_OK, "PQprepare", sql, line))
@@ -648,7 +649,7 @@ postgres_plugin_put (void *cls,
648 * asking the database plugin to call the iterator 649 * asking the database plugin to call the iterator
649 * with the next item. 650 * with the next item.
650 * 651 *
651 * @param cls the 'struct NextRequestClosure' 652 * @param next_cls the 'struct NextRequestClosure'
652 * @param tc scheduler context 653 * @param tc scheduler context
653 */ 654 */
654static void 655static void