Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Commit 7ee154b

Browse files
authored
Merge pull request #548 from qsliu2017/master
support "port" in oracle connection
2 parents 1cf89ac + 80fb09b commit 7ee154b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

data_diff/sqeleton/databases/_connect.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,11 @@ def connect_to_uri(self, db_uri: str, thread_count: Optional[int] = 1) -> Databa
182182
kw["user"] = dsn.user
183183
kw["password"] = dsn.password
184184
else:
185-
kw["host"] = dsn.host
186-
kw["port"] = dsn.port
185+
if scheme == "oracle":
186+
kw["host"] = dsn.hostloc
187+
else:
188+
kw["host"] = dsn.host
189+
kw["port"] = dsn.port
187190
kw["user"] = dsn.user
188191
if dsn.password:
189192
kw["password"] = dsn.password

0 commit comments

Comments
 (0)