Allow deletion of records on DROP tables (#2298)

This commit is contained in:
Micha de Vries 2023-07-20 10:22:16 +01:00 committed by GitHub
parent 773cb5f130
commit cbbde1fae1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,10 +24,6 @@ impl<'a> Document<'a> {
if !opt.force && !self.changed() { if !opt.force && !self.changed() {
return Ok(()); return Ok(());
} }
// Check if the table is a view
if self.tb(opt, txn).await?.drop {
return Ok(());
}
// Clone transaction // Clone transaction
let run = txn.clone(); let run = txn.clone();
// Claim transaction // Claim transaction