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