From 8f32817423c7b4fcbe91d1d146b09dc16b5d744d Mon Sep 17 00:00:00 2001 From: Jussi Saurio Date: Thu, 25 Sep 2025 13:40:41 +0300 Subject: [PATCH] translate: disable support for UPDATE ... ORDER BY we haven't really tested this at all, and it clearly doesn't work, as per #3315. best to disable it for the time being. --- core/translate/update.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/translate/update.rs b/core/translate/update.rs index c0d046e2d..278ae30de 100644 --- a/core/translate/update.rs +++ b/core/translate/update.rs @@ -122,6 +122,11 @@ pub fn prepare_update_plan( { bail_parse_error!("INDEXED BY clause is not supported in UPDATE"); } + + if !body.order_by.is_empty() { + bail_parse_error!("ORDER BY is not supported in UPDATE"); + } + let table_name = &body.tbl_name.name; // Check if this is a system table that should be protected from direct writes