nicer sync
authorVolker Birk <vb@pep.foundation>
Wed, 24 Oct 2018 16:31:16 +0200
branchsync
changeset 310250a03176b73f
parent 3101 b5ce2e8e12c8
child 3108 f6f11b35af07
nicer
sync/sql_func.yml2
test/src/engine_tests/SyncTests.cc
     1.1 --- a/sync/sql_func.yml2	Wed Oct 24 15:25:21 2018 +0200
     1.2 +++ b/sync/sql_func.yml2	Wed Oct 24 16:31:16 2018 +0200
     1.3 @@ -12,7 +12,11 @@
     1.4      param "sql";
     1.5      ||
     1.6          sqlite3_stmt *_sql;
     1.7 -        int int_result = sqlite3_prepare_v2(session->db, `copy '$sql'`, -1, &_sql, NULL);
     1.8 +        int int_result = sqlite3_prepare_v2(session->db,
     1.9 +    ||
    1.10 +    indent(2); copy '$sql';
    1.11 +    ||
    1.12 +            , -1, &_sql, NULL);
    1.13          assert(int_result == SQLITE_OK);
    1.14          if (!(int_result == SQLITE_OK))
    1.15              return PEP_UNKNOWN_ERROR;
     2.1 --- a/test/src/engine_tests/SyncTests.cc	Wed Oct 24 15:25:21 2018 +0200
     2.2 +++ b/test/src/engine_tests/SyncTests.cc	Wed Oct 24 16:31:16 2018 +0200
     2.3 @@ -97,7 +97,7 @@
     2.4      for (bloblist_t *b = msg->attachments; b && b->value; b = b->next) {
     2.5          if (b->mime_type && strcasecmp(b->mime_type, "application/pEp.sync") == 0) {
     2.6              assert(msg->from && msg->from->address && msg->from->username);
     2.7 -            cout << msg->from->username << " <" << msg->from->address << ">\n";
     2.8 +            cout << "<!-- " << msg->from->username << " <" << msg->from->address << "> -->\n";
     2.9              char *text = NULL;
    2.10              PEP_STATUS status = PER_to_XER_Sync_msg(msg->attachments->value, msg->attachments->size, &text);
    2.11              assert(status == PEP_STATUS_OK);