mirror of
https://github.com/openvk/openvk
synced 2024-11-14 11:09:12 +03:00
21 lines
333 B
Text
21 lines
333 B
Text
|
UPDATE
|
||
|
`messages`
|
||
|
SET
|
||
|
`unread` = 0
|
||
|
WHERE
|
||
|
(`id` > ?)
|
||
|
AND (
|
||
|
(
|
||
|
(`sender_type` = ?)
|
||
|
AND (`recipient_type` = ?)
|
||
|
AND (`sender_id` = ?)
|
||
|
AND (`recipient_id` = ?)
|
||
|
)
|
||
|
OR (
|
||
|
(`sender_type` = ?)
|
||
|
AND (`recipient_type` = ?)
|
||
|
AND (`sender_id` = ?)
|
||
|
AND (`recipient_id` = ?)
|
||
|
)
|
||
|
)
|