We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e1a4d5 commit 62f6785Copy full SHA for 62f6785
driver/mysql_connection.cpp
@@ -582,7 +582,9 @@ void MySQL_Connection::init(ConnectOptionsMap & properties)
582
Parsing uri prior to processing all parameters, so indivudually
583
specified parameters precede over those in the uri
584
*/
585
- parseUri(*p_s, uri);
+ if(!parseUri(*p_s, uri))
586
+ throw sql::InvalidArgumentException("Invalid hostname URI");
587
+
588
} else {
589
throw sql::InvalidArgumentException("No string value passed for hostName");
590
}
0 commit comments