Commit c334166
committed
Support JDBC Thin-style service name syntax
Oracle enhanced has supported Oracle SID syntax.
Since Oracle service name is mandatory for Oracle pluggable database,
it's time to support service name connection syntax.
- SID syntax
```
jdbc:oracle:thin:@myHost:1521:orcl
```
Refer
https://docs.oracle.com/cd/E11882_01/appdev.112/e13995/oracle/jdbc/OracleDriver.html
- Service name syntax
```
jdbc:oracle:thin:@//127.0.0.1:1521/ORCLPDB1
```
Refer "8.2.4 Thin-style Service Name Syntax"
https://docs.oracle.com/en/database/oracle/oracle-database/18/jjdbc/data-sources-and-URLs.html#GUID-EF07727C-50AB-4DCE-8EDC-57F0927FF61A1 parent f834097 commit c334166
File tree
3 files changed
+17
-2
lines changed- lib/active_record/connection_adapters/oracle_enhanced
- spec
- active_record/connection_adapters/oracle_enhanced
3 files changed
+17
-2
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
43 | 49 | | |
44 | 50 | | |
45 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
188 | 197 | | |
189 | 198 | | |
190 | 199 | | |
| |||
0 commit comments