Skip to content

Support UPDATE LIMIT #27

@adamziel

Description

@adamziel

WordPress cron fails because it cannot execute this query:

UPDATE wp_posts SET post_password = '971f813efffc0aa3250b', post_modified_gmt = '2023-03-24 15:41:06', post_modified = '2023-03-24 15:41:06' WHERE post_type = 'scheduled-action' AND post_status = 'pending' AND post_password = '' AND post_date_gmt <= '2023-03-24 15:41:06' ORDER BY menu_order ASC, post_date_gmt ASC, ID ASC LIMIT 25

The problem is with the trailing LIMIT 25. In SQLite, it should be split into a SELECT query and an UPDATE query – just like DELETE from a,b is currently handled.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions