Skip to content

Commit

Permalink
Fix show databases
Browse files Browse the repository at this point in the history
Signed-off-by: Xuanwo <github@xuanwo.io>
  • Loading branch information
Xuanwo committed Feb 17, 2025
1 parent f9436e2 commit 9d9c714
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/query/sql/src/planner/binder/ddl/database.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ impl Binder {
limit,
} = stmt;

let mut select_builder = SelectBuilder::from("system.databases");
let mut select_builder = SelectBuilder::from("default.system.databases");

let ctl = if let Some(ctl) = catalog {
normalize_identifier(ctl, &self.name_resolution_ctx).name
Expand Down Expand Up @@ -101,7 +101,7 @@ impl Binder {
stmt: &ShowDropDatabasesStmt,
) -> Result<Plan> {
let ShowDropDatabasesStmt { catalog, limit } = stmt;
let mut select_builder = SelectBuilder::from("system.databases_with_history");
let mut select_builder = SelectBuilder::from("default.system.databases_with_history");

let ctl = if let Some(ctl) = catalog {
normalize_identifier(ctl, &self.name_resolution_ctx).name
Expand Down

0 comments on commit 9d9c714

Please sign in to comment.