mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-29 14:04:22 +01:00
fix merge conflict problems
This commit is contained in:
@@ -736,27 +736,6 @@ fn emit_update_insns(
|
||||
},
|
||||
};
|
||||
|
||||
for cond in plan
|
||||
.where_clause
|
||||
.iter()
|
||||
.filter(|c| c.should_eval_before_loop(&[JoinOrderMember::default()]))
|
||||
{
|
||||
let jump_target = program.allocate_label();
|
||||
let meta = ConditionMetadata {
|
||||
jump_if_condition_is_true: false,
|
||||
jump_target_when_true: jump_target,
|
||||
jump_target_when_false: t_ctx.label_main_loop_end.unwrap(),
|
||||
};
|
||||
translate_condition_expr(
|
||||
program,
|
||||
&plan.table_references,
|
||||
&cond.expr,
|
||||
meta,
|
||||
&t_ctx.resolver,
|
||||
)?;
|
||||
program.preassign_label_to_next_insn(jump_target);
|
||||
}
|
||||
|
||||
let beg = program.alloc_registers(
|
||||
table_ref.table.columns().len()
|
||||
+ if is_virtual {
|
||||
@@ -823,27 +802,6 @@ fn emit_update_insns(
|
||||
});
|
||||
}
|
||||
|
||||
for cond in plan
|
||||
.where_clause
|
||||
.iter()
|
||||
.filter(|c| c.should_eval_before_loop(&[JoinOrderMember::default()]))
|
||||
{
|
||||
let jump_target = program.allocate_label();
|
||||
let meta = ConditionMetadata {
|
||||
jump_if_condition_is_true: false,
|
||||
jump_target_when_true: jump_target,
|
||||
jump_target_when_false: loop_labels.next,
|
||||
};
|
||||
translate_condition_expr(
|
||||
program,
|
||||
&plan.table_references,
|
||||
&cond.expr,
|
||||
meta,
|
||||
&t_ctx.resolver,
|
||||
)?;
|
||||
program.preassign_label_to_next_insn(jump_target);
|
||||
}
|
||||
|
||||
// we scan a column at a time, loading either the column's values, or the new value
|
||||
// from the Set expression, into registers so we can emit a MakeRecord and update the row.
|
||||
let start = if is_virtual { beg + 2 } else { beg + 1 };
|
||||
|
||||
@@ -514,8 +514,8 @@ impl<'a> GroupByAggArgumentSource<'a> {
|
||||
/// Emits bytecode for processing a single GROUP BY group.
|
||||
pub fn group_by_process_single_group<'a>(
|
||||
program: &mut ProgramBuilder,
|
||||
group_by: &'a GroupBy,
|
||||
plan: &'a SelectPlan,
|
||||
group_by: &GroupBy,
|
||||
plan: &SelectPlan,
|
||||
t_ctx: &mut TranslateCtx<'a>,
|
||||
) -> Result<()> {
|
||||
let GroupByMetadata {
|
||||
|
||||
Reference in New Issue
Block a user