From a45ac11462f7c066807e8f00953447de5878f4e1 Mon Sep 17 00:00:00 2001 From: Jussi Saurio Date: Thu, 17 Jul 2025 19:02:14 +0300 Subject: [PATCH] translate/create index: fix wrong collations --- core/translate/index.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/translate/index.rs b/core/translate/index.rs index 0a583d223..ab5756192 100644 --- a/core/translate/index.rs +++ b/core/translate/index.rs @@ -117,7 +117,7 @@ pub fn translate_create_index( cursor_id: sorter_cursor_id, columns: columns.len(), order, - collations: tbl.column_collations(), + collations: idx.columns.iter().map(|c| c.collation).collect(), }); let content_reg = program.alloc_register(); program.emit_insn(Insn::OpenPseudo {