Skip to content

Commit 618ec7d

Browse files
committed
fix: dm get schema
1 parent 3ec03fa commit 618ec7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/apps/db/db.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ def get_schema(ds: CoreDatasource):
323323
if equals_ignore_case(ds.type, 'dm'):
324324
with dmPython.connect(user=conf.username, password=conf.password, server=conf.host,
325325
port=conf.port, **extra_config_dict) as conn, conn.cursor() as cursor:
326-
cursor.execute("""select OBJECT_NAME from dba_objects where object_type='SCH'""", timeout=conf.timeout)
326+
cursor.execute("""SELECT USERNAME FROM ALL_USERS""", timeout=conf.timeout)
327327
res = cursor.fetchall()
328328
res_list = [item[0] for item in res]
329329
return res_list

0 commit comments

Comments
 (0)