Throw parse error on CHECK constraint in create table when opening new db

This commit is contained in:
PThorpe92
2025-10-16 13:30:05 -04:00
parent bd33b3fa83
commit f033af4a93

View File

@@ -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,