Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql: fix table lookup for drop index
Previously, when searching for the table relevant to a particular index when dropping the index, we would fetch all object names and require that all those tables exist. However, if a table was deleted in the same transaction that table name would not be resolvable and we would error. We already had a check to see if the table being looked up was nil, but this check would not be used because the `required` flag was set to true. This PR just sets the flag to false, and looks at moves on to the next table if one of them no longer is resolvable. Release note (bug fix): Fix faulty error when trying to delete a table and an unrelated index in the same transaction.
- Loading branch information