mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-03-13 08:00:15 +00:00
Return NULL if we got given a sync token we know nothing about.
This commit is contained in:
parent
193c2bba13
commit
8111c1cc9c
@ -1213,7 +1213,8 @@ BEGIN
|
||||
AND sync_time > (SELECT modification_time FROM sync_tokens WHERE sync_token = in_old_sync_token)
|
||||
LIMIT 1;
|
||||
IF NOT FOUND THEN
|
||||
RETURN in_old_sync_token;
|
||||
-- They are in an inconsistent state: we return NULL so they can re-start the process
|
||||
RETURN NULL;
|
||||
END IF;
|
||||
END IF;
|
||||
SELECT nextval('sync_tokens_sync_token_seq') INTO tmp_int;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user