mirror of
https://github.com/usememos/memos.git
synced 2026-11-19 10:29:11 +01:00
chore: use alternative locking syntax that both MySQL and MariaDB support (#6462)
This commit is contained in:
@@ -31,7 +31,7 @@ func (d *DB) UpsertReaction(ctx context.Context, upsert *store.Reaction) (*store
|
||||
SELECT ?, memo.id, ?
|
||||
FROM memo
|
||||
WHERE memo.id = ?
|
||||
FOR SHARE
|
||||
LOCK IN SHARE MODE
|
||||
`, upsert.CreatorID, upsert.ReactionType, upsert.MemoID)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user