Pre: Make it easier to debug binding errors.
This commit is contained in:
parent
002c918c96
commit
2f38f1e73e
1 changed files with 2 additions and 2 deletions
|
@ -164,7 +164,7 @@ fn candidate_column(query: &AlgebraicQuery, var: &Variable) -> (ColumnOrExpressi
|
|||
let columns = query.cc
|
||||
.column_bindings
|
||||
.get(var)
|
||||
.expect("Every variable has a binding");
|
||||
.expect(format!("Every variable should have a binding, but {:?} does not", var).as_str());
|
||||
|
||||
let qa = columns[0].clone();
|
||||
let name = VariableColumn::Variable(var.clone()).column_name();
|
||||
|
@ -496,4 +496,4 @@ pub fn query_projection(query: &AlgebraicQuery) -> CombinedProjection {
|
|||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue