fix(db): normalize default database handling

This commit is contained in:
t8y2
2026-05-09 15:53:06 +08:00
parent 5cffe12014
commit af029daf57
8 changed files with 144 additions and 30 deletions
+2
View File
@@ -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 {