diff options
| author | Christian Grothoff <christian@grothoff.org> | 2017-06-18 15:02:35 +0200 | 
|---|---|---|
| committer | Christian Grothoff <christian@grothoff.org> | 2017-06-19 00:17:15 +0200 | 
| commit | d66a29e383d1a6985906136c9606fcd18cb1c124 (patch) | |
| tree | 8671d89eca7185bfd233e24b8644609ccaf326d9 /src/exchangedb | |
| parent | 75b0879f4e5d0feb16f5cee6c775a587c9d47ecf (diff) | |
convert another function for #5010
Diffstat (limited to 'src/exchangedb')
| -rw-r--r-- | src/exchangedb/plugin_exchangedb_postgres.c | 24 | ||||
| -rw-r--r-- | src/exchangedb/test_exchangedb.c | 2 | 
2 files changed, 11 insertions, 15 deletions
| diff --git a/src/exchangedb/plugin_exchangedb_postgres.c b/src/exchangedb/plugin_exchangedb_postgres.c index c2f4ffa5..37db30d9 100644 --- a/src/exchangedb/plugin_exchangedb_postgres.c +++ b/src/exchangedb/plugin_exchangedb_postgres.c @@ -2793,11 +2793,9 @@ postgres_have_deposit (void *cls,   * @param cls the @e cls of this struct with the plugin-specific state   * @param session connection to the database   * @param rowid identifies the deposit row to modify - * @return #GNUNET_OK on success, - *         #GNUNET_NO on transient error - *         #GNUNET_SYSERR on error + * @return query result status   */ -static int +static enum GNUNET_DB_QueryStatus  postgres_mark_deposit_tiny (void *cls,                              struct TALER_EXCHANGEDB_Session *session,                              uint64_t rowid) @@ -2807,9 +2805,9 @@ postgres_mark_deposit_tiny (void *cls,      GNUNET_PQ_query_param_end    }; -  return execute_prepared_non_select (session, -                                      "mark_deposit_tiny", -                                      params); +  return GNUNET_PQ_eval_prepared_non_select (session->conn, +					     "mark_deposit_tiny", +					     params);  } @@ -2890,11 +2888,9 @@ postgres_test_deposit_done (void *cls,   * @param cls the @e cls of this struct with the plugin-specific state   * @param session connection to the database   * @param rowid identifies the deposit row to modify - * @return #GNUNET_OK on success, - *         #GNUNET_NO on transient error, - *         #GNUNET_SYSERR on error + * @return query result status   */ -static int +static enum GNUNET_DB_QueryStatus  postgres_mark_deposit_done (void *cls,                              struct TALER_EXCHANGEDB_Session *session,                              uint64_t rowid) @@ -2904,9 +2900,9 @@ postgres_mark_deposit_done (void *cls,      GNUNET_PQ_query_param_end    }; -  return execute_prepared_non_select (session, -                                      "mark_deposit_done", -                                      params); +  return GNUNET_PQ_eval_prepared_non_select (session->conn, +					     "mark_deposit_done", +					     params);  } diff --git a/src/exchangedb/test_exchangedb.c b/src/exchangedb/test_exchangedb.c index adb72375..28e089cf 100644 --- a/src/exchangedb/test_exchangedb.c +++ b/src/exchangedb/test_exchangedb.c @@ -1801,7 +1801,7 @@ run (void *cls)    FAILIF (GNUNET_OK !=            plugin->start (plugin->cls,                           session)); -  FAILIF (GNUNET_OK != +  FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT !=            plugin->mark_deposit_tiny (plugin->cls,                                       session,                                       deposit_rowid)); | 
