File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -121,8 +121,8 @@ struct nogvl_select_db_args {
121
121
static VALUE rb_set_ssl_mode_option (VALUE self , VALUE setting ) {
122
122
unsigned long version = mysql_get_client_version ();
123
123
124
- if (version < 50703 ) {
125
- rb_warn ( "Your mysql client library does not support setting ssl_mode; full support comes with 5.7.11. " );
124
+ if (version < 50630 || ( version >= 50700 && version < 50703 ) ) {
125
+ rb_warn ( "Your mysql client library does not support setting ssl_mode; full support comes with 5.6.36+, 5. 7.11+, 8.0+ " );
126
126
return Qnil ;
127
127
}
128
128
#if defined(HAVE_CONST_MYSQL_OPT_SSL_VERIFY_SERVER_CERT ) || defined(HAVE_CONST_MYSQL_OPT_SSL_ENFORCE )
@@ -1723,7 +1723,7 @@ void init_mysql2_client() {
1723
1723
rb_const_set (cMysql2Client , rb_intern ("SESSION_TRACK_TRANSACTION_STATE" ), INT2NUM (SESSION_TRACK_TRANSACTION_STATE ));
1724
1724
#endif
1725
1725
1726
- #if defined(FULL_SSL_MODE_SUPPORT ) // MySQL 5.7.11 and above
1726
+ #if defined(FULL_SSL_MODE_SUPPORT ) // MySQL 5.6.36 and MySQL 5. 7.11 and above
1727
1727
rb_const_set (cMysql2Client , rb_intern ("SSL_MODE_DISABLED" ), INT2NUM (SSL_MODE_DISABLED ));
1728
1728
rb_const_set (cMysql2Client , rb_intern ("SSL_MODE_PREFERRED" ), INT2NUM (SSL_MODE_PREFERRED ));
1729
1729
rb_const_set (cMysql2Client , rb_intern ("SSL_MODE_REQUIRED" ), INT2NUM (SSL_MODE_REQUIRED ));
You can’t perform that action at this time.
0 commit comments