Skip to content

Commit f259a99

Browse files
committed
fix:修复where条件列值转换
1 parent c3f7756 commit f259a99

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/analyze/analyze.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ void Analyze::get_clause_alias(const std::vector<ColMeta> &all_cols,
554554
col_values[cond.lhs_col] = cond.rhs_val; // 记录列值
555555
}
556556
} else if (rhs_term->term_type == TermType::COLUMN) {
557-
if(cond.op == CompOp::OP_EQ && col_values.count(rhs_term->col)) {
557+
if (col_values.count(rhs_term->col)) {
558558
// 如果是等于操作且右侧列已经有值,直接使用已记录的值
559559
cond.rhs_type = ConditionRhsType::RHS_VALUE;
560560
cond.rhs_val = col_values[rhs_term->col];

0 commit comments

Comments
 (0)