notnull is now set based on the nullable field instead of being hardcoded.

This commit is contained in:
rajajisai
2025-08-19 21:49:04 -04:00
parent 1614b0e0fa
commit 89cd3fe196

View File

@@ -931,8 +931,10 @@ fn create_table(
order = o;
}
}
turso_sqlite3_parser::ast::ColumnConstraint::NotNull { .. } => {
notnull = true;
turso_sqlite3_parser::ast::ColumnConstraint::NotNull {
nullable, ..
} => {
notnull = !nullable;
}
turso_sqlite3_parser::ast::ColumnConstraint::Default(expr) => {
default = Some(expr)