Skip to content

Commit

Permalink
fix query tenant
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-sun-star committed Sep 19, 2023
1 parent 4135021 commit 4ffb932
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/oceanbase/const/sql/tenant.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ See the Mulan PSL v2 for more details.
package sql

const (
GetTenantByName = "SELECT tenant_id, tenant_name, primary_zone, locality, previous_locality, status FROM oceanbase.DBA_OB_TENANTS WHERE tenant_name = ?;"
GetTenantByName = "SELECT tenant_id, tenant_name, primary_zone, locality, COALESCE(previous_locality, '') as previous_locality, status FROM oceanbase.DBA_OB_TENANTS WHERE tenant_name = ?;"
GetPoolByName = "SELECT resource_pool_id, name, unit_count, unit_config_id, zone_list, tenant_id FROM oceanbase.DBA_OB_RESOURCE_POOLS WHERE name = ?;"
GetUnitConfigV4ByName = "SELECT max_cpu, min_cpu, memory_size, log_disk_size, max_iops, min_iops, iops_weight FROM oceanbase.DBA_OB_UNIT_CONFIGS WHERE name = ?;"
GetPoolList = "SELECT resource_pool_id, name, unit_count, unit_config_id, zone_list, tenant_id FROM oceanbase.DBA_OB_RESOURCE_POOLS;"
Expand Down

0 comments on commit 4ffb932

Please sign in to comment.