Skip to content

Commit c92b07b

Browse files
committed
Fixing regression
1 parent 75d6207 commit c92b07b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

modules/mod_mysqlx_session.cc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,16 +152,15 @@ Value BaseSession::connect(const Argument_list &args) {
152152
else
153153
ssl_mode = static_cast<int>(shcore::SslMode::Preferred);
154154

155+
if (_port == 0 && _sock.empty())
156+
_port = 33060;
157+
155158
_session.open(_host, _port, _schema, _user, _password, _ssl_info.ca,
156159
_ssl_info.cert, _ssl_info.key, _ssl_info.capath, _ssl_info.crl, _ssl_info.crlpath,
157160
_ssl_info.tls_version, _ssl_info.ciphers, ssl_mode, 60000, _auth_method, true);
158161

159162
_connection_id = _session.get_connection_id();
160163

161-
// TODO(rennox): Implement is_tcp() for X protocol
162-
if (_port == 0 && _sock.empty())
163-
_port = 33060;
164-
165164
set_uri();
166165

167166
_default_schema = _schema;

shell-qa-test/xshell_automated.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8572,6 +8572,7 @@ def test_MYS_560(self):
85728572
results = exec_xshell_commands(init_command, x_cmds)
85738573
self.assertEqual(results, 'PASS')
85748574

8575+
@unittest.skip("This bugfix has not been completed in 1.0")
85758576
def test_MYS_583(self):
85768577
'''[MYS-583]: https://clustra.no.oracle.com/orabugs/bug.php?id=26422790
85778578
URI parsing does not decode PCT before passing to other systems'''

0 commit comments

Comments
 (0)