fix(oceanbase): update default connection port
This commit is contained in:
parent
ae288a0345
commit
3a35f5b911
|
|
@ -42,7 +42,7 @@ public final class OceanBaseOracleAgent extends ConfiguredJdbcAgent {
|
|||
public static final JdbcAgentProfile OCEANBASE_ORACLE_PROFILE = new JdbcAgentProfile(
|
||||
"com.oceanbase.jdbc.Driver",
|
||||
"jdbc:oceanbase://{host}:{port}/{database}",
|
||||
2881,
|
||||
2883,
|
||||
false,
|
||||
SYSTEM_SCHEMAS,
|
||||
List.of("TABLE", "VIEW", "BASE TABLE")
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ class OceanBaseOracleAgentTest {
|
|||
params.setDatabase("sys");
|
||||
|
||||
Assertions.assertEquals(
|
||||
"jdbc:oceanbase://oceanbase.example.com:2881/sys?compatibleOjdbcVersion=8",
|
||||
"jdbc:oceanbase://oceanbase.example.com:2883/sys?compatibleOjdbcVersion=8",
|
||||
OceanBaseOracleAgent.buildUrl(params)
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -545,10 +545,10 @@ const driverProfiles: Record<
|
|||
chromadb: { type: "chromadb", port: 8000, user: "", label: "ChromaDB", icon: "chromadb" },
|
||||
mariadb: { type: "mysql", port: 3306, user: "root", label: "MariaDB", icon: "mariadb" },
|
||||
tidb: { type: "mysql", port: 4000, user: "root", label: "TiDB", icon: "tidb" },
|
||||
oceanbase: { type: "mysql", port: 2881, user: "root", label: "OceanBase", icon: "oceanbase" },
|
||||
oceanbase: { type: "mysql", port: 2883, user: "root", label: "OceanBase", icon: "oceanbase" },
|
||||
"oceanbase-oracle": {
|
||||
type: "oceanbase-oracle",
|
||||
port: 2881,
|
||||
port: 2883,
|
||||
user: "SYS",
|
||||
label: "OceanBase Oracle Mode",
|
||||
icon: "oceanbase",
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ const typeMap: Record<string, { dbType: DatabaseType; profile: string; label: st
|
|||
kingbase: { dbType: "kingbase", profile: "kingbase", label: "KingbaseES", port: 54321, user: "SYSTEM" },
|
||||
kingbasees: { dbType: "kingbase", profile: "kingbase", label: "KingbaseES", port: 54321, user: "SYSTEM" },
|
||||
gaussdb: { dbType: "gaussdb", profile: "gaussdb", label: "GaussDB", port: 8000, user: "root" },
|
||||
oceanbase: { dbType: "oceanbase-oracle", profile: "oceanbase", label: "OceanBase", port: 2881, user: "root" },
|
||||
oceanbase: { dbType: "oceanbase-oracle", profile: "oceanbase", label: "OceanBase", port: 2883, user: "root" },
|
||||
// Numeric type codes (Navicat uses numeric ConnType for some exports)
|
||||
"1": { dbType: "mysql", profile: "mysql", label: "MySQL", port: 3306, user: "root" },
|
||||
"2": { dbType: "postgres", profile: "postgres", label: "PostgreSQL", port: 5432, user: "postgres" },
|
||||
|
|
@ -175,7 +175,7 @@ async function parseConnection(node: ParsedNode): Promise<ConnectionConfig | nul
|
|||
const sp = serviceProvider.toLowerCase();
|
||||
if (sp.includes("oceanbase")) {
|
||||
const oceanbaseOracleMode = normalizeKey(rawType).includes("oracle") || profile.dbType === "oracle";
|
||||
effectiveProfile = oceanbaseOracleMode ? { ...profile, dbType: "oceanbase-oracle", profile: "oceanbase-oracle", label: "OceanBase Oracle Mode", port: 2881 } : { ...profile, dbType: "mysql", profile: "oceanbase", label: "OceanBase", port: 2881 };
|
||||
effectiveProfile = oceanbaseOracleMode ? { ...profile, dbType: "oceanbase-oracle", profile: "oceanbase-oracle", label: "OceanBase Oracle Mode", port: 2883 } : { ...profile, dbType: "mysql", profile: "oceanbase", label: "OceanBase", port: 2883 };
|
||||
} else if (sp.includes("gaussdb") || sp.includes("huaweicloudgauss")) {
|
||||
effectiveProfile = { ...profile, dbType: "gaussdb", profile: "gaussdb", label: "GaussDB", port: 8000 };
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1067,7 +1067,7 @@
|
|||
"singleConnectionPool": true,
|
||||
"metadataConnectionScoped": false,
|
||||
"skipTcpProbe": true,
|
||||
"defaultPort": 2881,
|
||||
"defaultPort": 2883,
|
||||
"supportLevel": "operate",
|
||||
"capabilities": {
|
||||
"queryExecution": true,
|
||||
|
|
|
|||
Loading…
Reference in New Issue