SELECTm.*FROMmessenger_messagesmWHERE (m.delivered_atisnullORm.delivered_at<?) AND (m.available_at<=?) AND (m.queue_name=?) ORDER BYavailable_atASCLIMIT1FORUPDATE
SELECTm.*FROMmessenger_messagesmWHERE
(
m.delivered_atisnullORm.delivered_at<?
)
AND (m.available_at<=?)
AND (m.queue_name=?)
ORDER BYavailable_atASCLIMIT1FORUPDATE
SELECTm.*FROMmessenger_messagesmWHERE (m.delivered_atisnullORm.delivered_at<'2024-11-27 16:37:33') AND (m.available_at<='2024-11-27 17:37:33') AND (m.queue_name='default') ORDER BYavailable_atASCLIMIT1FORUPDATE;