Primary key constraint working

This commit is contained in:
pedrocarlo 2025-04-23 16:44:13 -03:00
parent c09e4d1d38
commit b6036cc79d
5 changed files with 142 additions and 15 deletions

View file

@ -569,13 +569,13 @@ pub fn insn_to_str(
),
Insn::Halt {
err_code,
description: _,
description,
} => (
"Halt",
*err_code as i32,
0,
0,
OwnedValue::build_text(""),
OwnedValue::build_text(&description),
0,
"".to_string(),
),
@ -1068,6 +1068,20 @@ pub fn insn_to_str(
0,
"".to_string(),
),
Insn::NoConflict {
cursor_id,
target_pc,
record_reg,
num_regs,
} => (
"NoConflict",
*cursor_id as i32,
target_pc.to_debug_int(),
*record_reg as i32,
OwnedValue::build_text(&format!("{num_regs}")),
0,
format!("key=r[{}]", record_reg),
),
Insn::NotExists {
cursor,
rowid_reg,