Add SQLITE_CONSTRAINT_UNIQUE constraint to op_halt handling

This commit is contained in:
PThorpe92
2025-09-21 13:29:01 -04:00
parent 6fb4b03801
commit a1ca56620a

View File

@@ -1,4 +1,5 @@
#![allow(unused_variables)]
use crate::error::SQLITE_CONSTRAINT_UNIQUE;
use crate::function::AlterTableFunc;
use crate::numeric::{NullableInteger, Numeric};
use crate::schema::Table;
@@ -2094,6 +2095,11 @@ pub fn halt(
"NOT NULL constraint failed: {description} (19)"
)));
}
SQLITE_CONSTRAINT_UNIQUE => {
return Err(LimboError::Constraint(format!(
"UNIQUE constraint failed: {description} (19)"
)));
}
_ => {
return Err(LimboError::Constraint(format!(
"undocumented halt error code {description}"