File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -2998,8 +2998,15 @@ void connection::ssl_mode()
2998
2998
2999
2999
connection_properties[" OPT_SSL_MODE" ] = sql::SSL_MODE_REQUIRED;
3000
3000
3001
- created_objects.clear ();
3002
- con.reset (driver->connect (connection_properties));
3001
+ try
3002
+ {
3003
+ created_objects.clear ();
3004
+ con.reset (driver->connect (connection_properties));
3005
+ }
3006
+ catch (std::exception&)
3007
+ {
3008
+ SKIP (" Server doesn't support SSL connections" );
3009
+ }
3003
3010
3004
3011
con->setSchema (db);
3005
3012
stmt.reset (con->createStatement ());
@@ -3022,7 +3029,6 @@ void connection::ssl_mode()
3022
3029
created_objects.clear ();
3023
3030
con.reset (driver->connect (connection_properties));
3024
3031
3025
-
3026
3032
connection_properties[" OPT_SSL_MODE" ] = sql::SSL_MODE_DISABLED;
3027
3033
3028
3034
// only to trigger setssl which changes SSL_MODE
You can’t perform that action at this time.
0 commit comments