OPEN connection=1 isolation=2
SQL connection=1 thread=main text=DELETE FROM derived binds=[]
ROWS connection=1 affected=0
COMMIT connection=1 count=1
SQL connection=1 thread=main text=SELECT version,event_id,kind,format,days FROM events WHERE version>? ORDER BY version binds=[0]
SQL connection=1 thread=main text=SELECT version,days,status FROM snapshot binds=[]
SQL connection=1 thread=main text=SELECT version,event_id,kind,format,days FROM events WHERE version>? ORDER BY version binds=[2]
PASS snapshot suffix equals full replay
PASS old format upcast keeps days
SQL connection=1 thread=main text=INSERT INTO derived VALUES(?,?,?) binds=[3, 5, CANCELLED]
ROWS connection=1 affected=1
COMMIT connection=1 count=2
SQL connection=1 thread=main text=SELECT COUNT(*) FROM notifications binds=[]
PASS replay sends no additional notification
SQL connection=1 thread=main text=UPDATE stream_head SET version=version+1 WHERE version=? binds=[1]
ROWS connection=1 affected=0
ROLLBACK connection=1 count=1
PASS stale expected version rejected
SQL connection=1 thread=main text=UPDATE stream_head SET version=version+1 WHERE version=? binds=[3]
ROWS connection=1 affected=1
SQL connection=1 thread=main text=INSERT INTO events VALUES(?,?,?,?,?) binds=[4, E3, CANCELLED, 2, 0]
SQL_FAILURE connection=1 state=23505 code=23505
PASS duplicate event SQLSTATE23505
ROLLBACK connection=1 count=2
SQL connection=1 thread=main text=SELECT version FROM stream_head binds=[]
PASS duplicate rollback restores head
CLOSE connection=1 openStatements=0
RESULT enterprise13 replay checks=6
