You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
killme2008
changed the title
Checking current database when dropping database
Checking if database is using currently when dropping database
May 24, 2024
killme2008
changed the title
Checking if database is using currently when dropping database
Checking if database is used currently when dropping database
May 24, 2024
What type of enhancement is this?
User experience
What does the enhancement do?
The GreptimeDB doesn't checking if current session is using the database which will be dropped:
It's better to prevent dropping the database if the user is using it in MySQL or Postgres Session.
Implementation challenges
Looks like it can be checked at
greptimedb/src/operator/src/statement/ddl.rs
Line 657 in 466f7c6
Retrieving the current database using QueryContext#current_schema and checking if it's the database to be dropped.
The text was updated successfully, but these errors were encountered: