Commit dbf19f3
Add modern JDBC driver support (ojdbc17, ojdbc11, ojdbc8)
Build the JDBC driver 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.
- ojdbc17.jar for Java 17+
- ojdbc11.jar for Java 11+
- ojdbc8.jar for Java 8+
Use Regexp.union to escape dots in jar name matching to avoid
unintended classpath matches.
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 5ea974a commit dbf19f3
2 files changed
Lines changed: 14 additions & 12 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 | | |
20 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| |||
0 commit comments