mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-06 00:34:23 +01:00
Throw parse error on CHECK constraint in create table when opening new db
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user