uranusjr commented on a change in pull request #19084:
URL: https://github.com/apache/airflow/pull/19084#discussion_r732225002



##########
File path: airflow/providers/oracle/hooks/oracle.py
##########
@@ -136,6 +137,12 @@ def get_conn(self) -> 'OracleHook':
         if mod is not None:
             conn.module = mod
 
+        # if Connection.schema is defined, set schema after connecting 
successfully
+        # cannot be part of conn_config
+        # 
https://cx-oracle.readthedocs.io/en/latest/api_manual/connection.html?highlight=schema#Connection.current_schema
+        if schema is not None:
+            conn.current_schema = schema

Review comment:
       Oh, never mind, `conn` here is the database connection, not Airflow's 
`Connection` class. I was confused.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to