Skip to content

Commit 989eef5

Browse files
committed
fix: assistant support oracle connection mode
1 parent 5799eed commit 989eef5

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
@@ -72,7 +72,7 @@ def get_uri_from_config(type: str, conf: DatasourceConf) -> str:
7272
else:
7373
db_url = f"postgresql+psycopg2://{urllib.parse.quote(conf.username)}:{urllib.parse.quote(conf.password)}@{conf.host}:{conf.port}/{conf.database}"
7474
elif equals_ignore_case(type, "oracle"):
75-
if equals_ignore_case(conf.mode, "service_name"):
75+
if equals_ignore_case(conf.mode, "service_name", "serviceName"):
7676
if conf.extraJdbc is not None and conf.extraJdbc != '':
7777
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}"
7878
else:

0 commit comments

Comments
 (0)