We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2868c0 commit 9819845Copy full SHA for 9819845
src/sentry/models/counter.py
@@ -77,9 +77,9 @@ def increment_project_counter(project, delta=1):
77
(project_id, value)
78
values (%s, @new_val := %s)
79
on duplicate key
80
- update value = @new_val := value + %s;
81
- select @new_val;
+ update value = @new_val := value + %s
82
''', [project.id, delta, delta])
+ cur.execute('select @new_val')
83
return cur.fetchone()[0]
84
else:
85
raise AssertionError("Not implemented database engine path")
0 commit comments