blob: 2ca92d8e1ead0a2ca457ec6071639bfc3d1006e9 (
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
30
31
32
33
34
|
//
// Created by parallels on 08/04/24.
//
#include "platform.h"
#include "taler_pq_lib.h"
#include "pg_helper.h"
#include "pg_update_bad_sig_losses.h"
enum GNUNET_DB_QueryStatus
TAH_PG_update_bad_sig_losses (
void *cls,
const struct TALER_AUDITORDB_Generic_Update *gu)
{
struct PostgresClosure *pg = cls;
struct GNUNET_PQ_QueryParam params[] = {
GNUNET_PQ_query_param_uint64 (&gu->row_id),
GNUNET_PQ_query_param_bool (gu->suppressed),
GNUNET_PQ_query_param_end
};
PREPARE (pg,
"update_bad_sig_losses",
"UPDATE auditor_bad_sig_losses SET"
" suppressed=$2"
" WHERE row_id=$1");
return GNUNET_PQ_eval_prepared_non_select (pg->conn,
"update_bad_sig_losses",
params);
}
|