Skip to content

Commit 0e2ee0a

Browse files
committed
store: Address logic error in CreateIndex.fields_exist_in_dest
Do not short-circuit checking other columns in the check for Block
1 parent 6aa489c commit 0e2ee0a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

store/postgres/src/relational/index.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,9 @@ impl CreateIndex {
685685
}
686686
Expr::Vid => (),
687687
Expr::Block => {
688-
return dest_table.immutable;
688+
if !dest_table.immutable {
689+
return false;
690+
}
689691
}
690692
Expr::Unknown(expression) => {
691693
if some_column_contained(

0 commit comments

Comments
 (0)