mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 18:18:03 +00:00
Primary key constraint working
This commit is contained in:
parent
c09e4d1d38
commit
b6036cc79d
5 changed files with 142 additions and 15 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue