fix: dm get schema

This commit is contained in:
junjun
2026-01-07 14:00:31 +08:00
committed by Junjun
parent 3ec03fa859
commit 618ec7dfc2
+1 -1
View File
@@ -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