fix(gbase8s): omit owner qualifier in table admin SQL
This commit is contained in:
1 parent
6d866905b5
commit
1533064f1f
6 files changed
+37
-10
No files matched your search
@@ -312,6 +312,12 @@ export function connectionObjectTreeNodeSchema(connection: JdbcDialectConnection
|
||||
return isSchemaAware(type) ? schema || database : undefined;
|
||||
}
|
||||
|
||||
/** GBase 8s reports the table owner as a schema, but does not accept it in table DML/DDL names. */
|
||||
export function connectionTableSqlSchema(connection: JdbcDialectConnection | undefined, schema?: string): string | undefined {
|
||||
if (connection?.db_type === "gbase" && isGbase8sProfile(connection.driver_profile)) return undefined;
|
||||
return schema;
|
||||
}
|
||||
|
||||
/** Maps a database type to the corresponding CodeMirror SQL dialect name used by QueryEditor and DdlViewDialog. */
|
||||
export function codeMirrorSqlDialect(dbType: DatabaseType | undefined): "mysql" | "postgres" | "sqlserver" {
|
||||
if (dbType === "postgres" || dbType === "gaussdb" || dbType === "kwdb" || dbType === "opengauss") return "postgres";
|
||||
|
||||
Reference in new issue
Block a user