Commit ed5df34
Add ojdbc17, ojdbc11 and ojdbc8 to JDBC driver search list
The driver search only looked for ojdbc7.jar and ojdbc6.jar on Java 7+.
Modern Oracle JDBC drivers use ojdbc17.jar (Java 17+), ojdbc11.jar
(Java 11+) and ojdbc8.jar (Java 8+). Build the search list based on
the running Java major version so that only compatible jars are tried,
in priority order preferring the newest driver. Older drivers are still
searched as fallbacks since they run on newer Java versions.
Ref: https://www.oracle.com/database/technologies/appdev/jdbc-downloads.html
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 5587fab commit ed5df34
2 files changed
Lines changed: 13 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
| 157 | + | |
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
| 8 | + | |
| 9 | + | |
16 | 10 | | |
17 | | - | |
| 11 | + | |
18 | 12 | | |
19 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| |||
0 commit comments