mirror of
https://github.com/t8y2/dbx.git
synced 2026-11-01 00:25:38 +00:00
fix(db): normalize default database handling
This commit is contained in:
@@ -138,6 +138,8 @@ export const useConnectionStore = defineStore("connection", () => {
|
||||
let dbType = config.db_type;
|
||||
if ((profile === "gaussdb" || profile === "opengauss") && dbType === "postgres") {
|
||||
dbType = "gaussdb" as ConnectionConfig["db_type"];
|
||||
} else if (profile === "redshift" && dbType === "postgres") {
|
||||
dbType = "redshift" as ConnectionConfig["db_type"];
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user