Skip to content

Commit 087b4b1

Browse files
committed
Bug#36383472 JDBC: Misleading error message when connection fails
1 parent bd39973 commit 087b4b1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

jdbc/driver/mysql_connection.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1570,6 +1570,7 @@ void MySQL_Connection::init(ConnectOptionsMap & properties)
15701570

15711571
std::advance(el, pos);
15721572
proxy->use_protocol(el->Protocol());
1573+
host = *el; // Note: for error reporting
15731574

15741575
try {
15751576
connect(el->Host(), userName,

0 commit comments

Comments
 (0)