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.
This commit is contained in:
Jussi Saurio
2025-09-25 13:40:41 +03:00
parent 3113822ceb
commit 8f32817423

View File

@@ -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