File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
src/main/java/org/utplsql/cli/datasource Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,10 @@ private void setThickOrThinJdbcUrl(HikariDataSource ds ) throws SQLException
46
46
{
47
47
List <String > errors = new ArrayList <>();
48
48
Throwable lastException = null ;
49
+
50
+ ds .setUsername (config .getUser ());
51
+ ds .setPassword (config .getPassword ());
52
+
49
53
for (ConnectStringPossibility possibility : possibilities ) {
50
54
ds .setJdbcUrl (possibility .getConnectString (config ));
51
55
try (Connection con = ds .getConnection ()) {
@@ -92,7 +96,7 @@ private void setInitSqlFrom_NLS_LANG(HikariDataSource ds ) {
92
96
private static class ThickConnectStringPossibility implements ConnectStringPossibility {
93
97
@ Override
94
98
public String getConnectString (ConnectionConfig config ) {
95
- return "jdbc:oracle:oci8:" + config .getConnectString ();
99
+ return "jdbc:oracle:oci8:@ " + config .getConnect ();
96
100
}
97
101
98
102
@ Override
@@ -104,7 +108,7 @@ public String getMaskedConnectString(ConnectionConfig config) {
104
108
private static class ThinConnectStringPossibility implements ConnectStringPossibility {
105
109
@ Override
106
110
public String getConnectString (ConnectionConfig config ) {
107
- return "jdbc:oracle:thin:" + config .getConnectString ();
111
+ return "jdbc:oracle:thin:@ " + config .getConnect ();
108
112
}
109
113
110
114
@ Override
You can’t perform that action at this time.
0 commit comments