Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
release-20.2: sql: ensure "promoted" temporary views are marked as such
This commit fixes a bug whereby views which reference temp tables are created in the temporary schema but are not marked as being temporary. Usually this doesn't cause a lot of trouble. Problems arise when another session attempts to drop the database corresponding to the temp schema containing these views before they have been cleaned up. In that case, the `DROP DATABASE` command will observe an opaque `descriptor not found` error. Release note (bug fix): Fixed a bug which could cause errors in DROP DATABASE CASCADE when the database contains temporary views in other sessions which were not explicitly marked as TEMPORARY.
- Loading branch information