From 989eef51d6a50a09f0fb0eea80b5430810a89b5e Mon Sep 17 00:00:00 2001 From: junjun Date: Wed, 4 Feb 2026 14:25:20 +0800 Subject: [PATCH] fix: assistant support oracle connection mode --- 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 29885332..923066b3 100644 --- a/backend/apps/db/db.py +++ b/backend/apps/db/db.py @@ -72,7 +72,7 @@ def get_uri_from_config(type: str, conf: DatasourceConf) -> str: else: db_url = f"postgresql+psycopg2://{urllib.parse.quote(conf.username)}:{urllib.parse.quote(conf.password)}@{conf.host}:{conf.port}/{conf.database}" elif equals_ignore_case(type, "oracle"): - if equals_ignore_case(conf.mode, "service_name"): + if equals_ignore_case(conf.mode, "service_name", "serviceName"): if conf.extraJdbc is not None and conf.extraJdbc != '': db_url = f"oracle+oracledb://{urllib.parse.quote(conf.username)}:{urllib.parse.quote(conf.password)}@{conf.host}:{conf.port}?service_name={conf.database}&{conf.extraJdbc}" else: