Commit 3c2c3f7
fix(providers/oracle): use conn.schema as service_name fallback in OracleHook (apache#62895)
* fix(providers/oracle): use conn.schema as service_name fallback in OracleHook
When creating an Oracle connection via the UI with Host, Port, and Schema
fields filled but without explicitly setting service_name in extras,
get_conn() built the DSN without a service name, causing TNS errors.
Now conn.schema is used as the service_name when neither service_name
nor sid is set in connection extras.
Fixes apache#62526
* ci: retrigger CI (unrelated static check failures)
* fix: remove thick_mode from schema_as_service_name test to avoid CI Oracle client dependency1 parent ef578fb commit 3c2c3f7
File tree
2 files changed
+34
-0
lines changed- providers/oracle
- src/airflow/providers/oracle/hooks
- tests/unit/oracle/hooks
2 files changed
+34
-0
lines changedLines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
219 | 223 | | |
220 | 224 | | |
221 | 225 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
144 | 174 | | |
145 | 175 | | |
146 | 176 | | |
| |||
0 commit comments