v.23.10Improvement
Database Behavior Consistency in ClickHouse with Queries After Drop
If you dropped the current database, you will still be able to run some queries inclickhouse-localand switch to another database. This makes the behavior consistent withclickhouse-client. This closes #55834. #55853 (Alexey Milovidov).
Why it matters
Previously, dropping the current database inclickhouse-local could leave the user unable to execute further queries or switch to another database. This feature resolves that inconsistency by allowing continued query execution and database switching after dropping the current database, improving usability and consistency across ClickHouse client tools.How to use it
When usingclickhouse-local, after dropping the active database with DROP DATABASE <db_name>, users can continue to run queries and switch to other databases using standard SQL commands such as USE <other_database>.