summaryrefslogtreecommitdiff
path: root/src/auditordb/pg_del_amount_arithmetic_inconsistency.c
blob: 42dd2d2b1a1115f947a2fe1a6ebe99e2927fa4c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//
// Created by parallels on 21/03/24.
//

#include "pg_del_amount_arithmetic_inconsistency.h"

#include "taler_pq_lib.h"
#include "pg_helper.h"

enum GNUNET_DB_QueryStatus
TAH_PG_del_amount_arithmetic_inconsistency (
  void *cls,
  uint64_t row_id)
{
  struct PostgresClosure *pg = cls;
  struct GNUNET_PQ_QueryParam params[] = {
    GNUNET_PQ_query_param_uint64 (&row_id),
    GNUNET_PQ_query_param_end
  };

  PREPARE (pg,
           "auditor_delete_amount_arithmetic_inconsistency",
           "DELETE"
           " FROM auditor_amount_arithmetic_inconsistency"
           " WHERE row_id=$1;");
  return GNUNET_PQ_eval_prepared_non_select (pg->conn,
                                             "auditor_delete_amount_arithmetic_inconsistency",
                                             params);
}