You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnfmt.Errorf("inconsistent operation and flow ID mapping results: op.ID=%d, flow.ID=%d expected both to be 0 or both to be non-zero", op.Id, op.FlowId)
262
-
}
263
260
ifop.Id==0 {
264
261
ifisUpdate {
265
262
h.l.Sugar().Warnf("received update for non-existent operation %+v, inserting instead", op)
err:=m.dbpool.QueryRowContext(context.Background(), "SELECT operations.id FROM operations ORDER BY operations.id DESC LIMIT 1").Scan(&lastID)
141
-
iferr!=nil&&!errors.Is(err, sql.ErrNoRows) {
142
-
returnfmt.Errorf("init sqlite: %v", err)
143
-
}
144
-
m.lastIDVal.Store(lastID)
145
-
146
-
varhighestModnoint64
147
-
err=m.dbpool.QueryRowContext(context.Background(), "SELECT operations.modno FROM operations ORDER BY operations.modno DESC LIMIT 1").Scan(&highestModno)
0 commit comments