diff options
author | Marcello Stanisci <marcello.stanisci@inria.fr> | 2017-03-17 19:01:26 +0100 |
---|---|---|
committer | Marcello Stanisci <marcello.stanisci@inria.fr> | 2017-03-17 19:04:36 +0100 |
commit | c7d8e10b4d6491377076927b9222025afa26d8e5 (patch) | |
tree | f38621a90077765d8106e37f8bf032b349dcd37f /src/backenddb/test_merchantdb.c | |
parent | 5479efa311e253b2577591082b46adb485b55baa (diff) | |
download | merchant-c7d8e10b4d6491377076927b9222025afa26d8e5.tar.gz merchant-c7d8e10b4d6491377076927b9222025afa26d8e5.tar.bz2 merchant-c7d8e10b4d6491377076927b9222025afa26d8e5.zip |
helper db methods for /history. Prepared statements have
still problems with 'FETCH FIRST'.. To be fixed.
Diffstat (limited to 'src/backenddb/test_merchantdb.c')
-rw-r--r-- | src/backenddb/test_merchantdb.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/backenddb/test_merchantdb.c b/src/backenddb/test_merchantdb.c index a18b8079..de01023b 100644 --- a/src/backenddb/test_merchantdb.c +++ b/src/backenddb/test_merchantdb.c @@ -193,11 +193,13 @@ transaction_cb (void *cls, * * @param cls closure * @param order_id order id + * @param row_id row id in db * @param proposal_data proposal data */ static void pd_cb (void *cls, const char *order_id, + unsigned int row_id, const json_t *proposal_data) { return; @@ -377,11 +379,22 @@ run (void *cls) &h_proposal_data2, &merchant_pub)); FAILIF (1 != + plugin->find_proposal_data_by_date_and_range (plugin->cls, + fake_now, + &merchant_pub, + 0, + 5, + pd_cb, + NULL)); + + FAILIF (1 != plugin->find_proposal_data_by_date (plugin->cls, fake_now, &merchant_pub, + 5, pd_cb, NULL)); + FAILIF (GNUNET_OK != plugin->store_transaction (plugin->cls, &h_proposal_data, |