Skip to content

Commit 74a2992

Browse files
committed
Fix #168
1 parent 8554cc8 commit 74a2992

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

dbt/adapters/oracle/connection_helper.py

-2
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,6 @@ class OracleNetConfig(dict):
7171
'wallet_password',
7272
'wallet_location',
7373
'expire_time',
74-
'https_proxy',
75-
'https_proxy_port',
7674
'retry_count',
7775
'retry_delay',
7876
'tcp_connect_timeout',

dbt/adapters/oracle/connections.py

+9
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@ class OracleAdapterCredentials(Credentials):
120120
# session info is stored in v$session for each dbt run
121121
session_info: Optional[Dict[str, str]] = field(default_factory=dict)
122122

123+
# read http proxy from profiles.yml
124+
https_proxy: Optional[str] = None
125+
https_proxy_port: Optional[int] = None
126+
123127

124128
_ALIASES = {
125129
'dbname': 'database',
@@ -243,6 +247,11 @@ def open(cls, connection):
243247
elif purity == 'default':
244248
conn_config['purity'] = oracledb.ATTR_PURITY_DEFAULT
245249

250+
if credentials.https_proxy and credentials.https_proxy_port:
251+
conn_config['https_proxy'] = credentials.https_proxy
252+
conn_config['https_proxy_port'] = credentials.https_proxy_port
253+
254+
246255
if SQLNET_ORA_CONFIG is not None:
247256
conn_config.update(SQLNET_ORA_CONFIG)
248257

0 commit comments

Comments
 (0)