src/pEpEngine.c
changeset 644 91574e3ca5fb
parent 641 ae3b959b3a7d
child 652 ccc02be8a27d
child 658 244734164566
     1.1 --- a/src/pEpEngine.c	Tue May 17 17:21:01 2016 +0200
     1.2 +++ b/src/pEpEngine.c	Tue May 17 17:43:04 2016 +0200
     1.3 @@ -222,7 +222,7 @@
     1.4          sql_set_person = "insert or replace into person (id, username, lang, main_key_id)"
     1.5                           "  values (?1, ?2, ?3,"
     1.6                           "    (select coalesce((select main_key_id from person "
     1.7 -                         "      where id = ?1), ?4 ))) ;";
     1.8 +                         "      where id = ?1), upper(replace(?4,' ',''))))) ;";
     1.9  
    1.10          sql_set_pgp_keypair = "insert or replace into pgp_keypair (fpr) "
    1.11                                "values (upper(replace(?1,' ',''))) ;";