mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 18:18:03 +00:00
refactor: merge branches
This commit is contained in:
parent
d8bc8c48c3
commit
587cf345cc
1 changed files with 7 additions and 10 deletions
|
@ -152,16 +152,13 @@ pub fn translate_inner(
|
|||
)));
|
||||
}
|
||||
|
||||
if col.unique {
|
||||
return Err(LimboError::ParseError(format!(
|
||||
"cannot drop column \"{column}\": UNIQUE"
|
||||
)));
|
||||
}
|
||||
|
||||
if btree.unique_sets.as_ref().is_some_and(|set| {
|
||||
set.iter()
|
||||
.any(|set| set.iter().any(|(column_name, _)| column_name == &column))
|
||||
}) {
|
||||
if col.unique
|
||||
|| btree.unique_sets.as_ref().is_some_and(|set| {
|
||||
set.iter().any(|set| {
|
||||
set.iter().any(|(column_name, _)| column_name == &column)
|
||||
})
|
||||
})
|
||||
{
|
||||
return Err(LimboError::ParseError(format!(
|
||||
"cannot drop column \"{column}\": UNIQUE"
|
||||
)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue