From 12bf1146ca6c7f404b5305bf2f39ac796c56aafe Mon Sep 17 00:00:00 2001 From: junjun Date: Wed, 7 Jan 2026 13:59:09 +0800 Subject: [PATCH] fix: dm get schema --- backend/apps/db/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/apps/db/db.py b/backend/apps/db/db.py index fd58d212..be5ccc25 100644 --- a/backend/apps/db/db.py +++ b/backend/apps/db/db.py @@ -323,7 +323,7 @@ def get_schema(ds: CoreDatasource): if equals_ignore_case(ds.type, 'dm'): with dmPython.connect(user=conf.username, password=conf.password, server=conf.host, port=conf.port, **extra_config_dict) as conn, conn.cursor() as cursor: - cursor.execute("""select OBJECT_NAME from dba_objects where object_type='SCH'""", timeout=conf.timeout) + cursor.execute("""SELECT USERNAME FROM ALL_USERS""", timeout=conf.timeout) res = cursor.fetchall() res_list = [item[0] for item in res] return res_list