blob: 253779665642851eafcf085c3b6ef16c204acc86 (
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
35
|
//
// Created by parallels on 21/03/24.
//
#include "platform.h"
#include "taler_pq_lib.h"
#include "pg_helper.h"
#include "pg_insert_row_inconsistency.h"
enum GNUNET_DB_QueryStatus
TAH_PG_insert_row_inconsistency (
void *cls,
const struct TALER_AUDITORDB_RowInconsistency *dc)
{
struct PostgresClosure *pg = cls;
struct GNUNET_PQ_QueryParam params[] = {
GNUNET_PQ_query_param_string (dc->row_table),
GNUNET_PQ_query_param_string (dc->diagnostic),
GNUNET_PQ_query_param_end
};
PREPARE (pg,
"auditor_deposit_confirmation_insert",
"INSERT INTO auditor_row_inconsistency "
"(row_table"
",diagnostic"
") VALUES ($1,$2);");
return GNUNET_PQ_eval_prepared_non_select (pg->conn,
"auditor_deposit_confirmation_insert",
params);
}
|