mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-23 08:55:40 +01:00
Add SQLITE_CONSTRAINT_UNIQUE constraint to op_halt handling
This commit is contained in:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user