From f033af4a93f92e11ef1126c8e594869c9e8ef3db Mon Sep 17 00:00:00 2001 From: PThorpe92 Date: Thu, 16 Oct 2025 13:30:05 -0400 Subject: [PATCH] Throw parse error on CHECK constraint in create table when opening new db --- core/schema.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/schema.rs b/core/schema.rs index d92c6e612..b744a99a5 100644 --- a/core/schema.rs +++ b/core/schema.rs @@ -1632,6 +1632,9 @@ pub fn create_table(tbl_name: &str, body: &CreateTableBody, root_page: i64) -> R let mut collation = None; for c_def in constraints { match &c_def.constraint { + ast::ColumnConstraint::Check { .. } => { + crate::bail_parse_error!("CHECK constraints are not yet supported"); + } ast::ColumnConstraint::PrimaryKey { order: o, auto_increment,