Skip to content
Snippets Groups Projects
Commit c4b7bdd6 authored by Pavel Kácha's avatar Pavel Kácha
Browse files

Zero is special cased event id, don't ever return it

parent 2116f05a
No related branches found
No related tags found
No related merge requests found
...@@ -809,7 +809,7 @@ class MySQL(ObjectBase): ...@@ -809,7 +809,7 @@ class MySQL(ObjectBase):
for attempt in self.repeat(): for attempt in self.repeat():
with attempt as db: with attempt as db:
row = db.query("SELECT MAX(id) as id FROM events").fetchall()[0] row = db.query("SELECT MAX(id) as id FROM events").fetchall()[0]
return row['id'] or 0 return row['id'] or 1
def getLastReceivedId(self, client): def getLastReceivedId(self, client):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment