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 {