src/pEpEngine.c
branchENGINE-289
changeset 2365 597b1dc40520
parent 2329 b9b75cd73c2b
child 2366 0ca4e20a40cc
     1.1 --- a/src/pEpEngine.c	Tue Dec 19 00:00:35 2017 +0100
     1.2 +++ b/src/pEpEngine.c	Mon Dec 25 06:22:37 2017 +0100
     1.3 @@ -108,6 +108,11 @@
     1.4      "update person set device_group = ?1 "
     1.5      "where id = ?2;";
     1.6  
     1.7 +// This will cascade to identity and trust
     1.8 +static const char* sql_replace_userid =
     1.9 +    "update person set id = ?1" 
    1.10 +    "where id = ?2;";
    1.11 +
    1.12  static const char *sql_get_device_group = 
    1.13      "select device_group from person "
    1.14      "where id = ?1;";
    1.15 @@ -182,10 +187,6 @@
    1.16  static const char *sql_i18n_token = 
    1.17      "select phrase from i18n_token where lang = lower(?1) and id = ?2 ;";
    1.18  
    1.19 -// This will cascade to identity and trust
    1.20 -static const char* sql_replace_userid =
    1.21 -    "update person set id = ?1 where id = ?2 ;";
    1.22 -
    1.23  // blacklist
    1.24  static const char *sql_blacklist_add = 
    1.25      "insert or replace into blacklist_keys (fpr) values (upper(replace(?1,' ',''))) ;"