File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -124,8 +124,8 @@ static VALUE rb_set_ssl_mode_option(VALUE self, VALUE setting) {
124
124
#ifdef HAVE_CONST_MYSQL_OPT_SSL_ENFORCE
125
125
GET_CLIENT (self );
126
126
int val = NUM2INT ( setting );
127
- // Either MySQL 5.7.3 - 5.7.10, or Connector/C 6.1.3 - 6.1.x
128
- if ((version >= 50703 && version < 50711 ) || (version >= 60103 && version < 60200 )) {
127
+ // Either MySQL 5.7.3 - 5.7.10, or Connector/C 6.1.3 - 6.1.x, or MariaDB 10.x
128
+ if ((version >= 50703 && version < 50711 ) || (version >= 60103 && version < 60200 ) || ( version >= 100000 && version < 110000 ) ) {
129
129
if (val == SSL_MODE_DISABLED || val == SSL_MODE_REQUIRED ) {
130
130
my_bool b = ( val == SSL_MODE_REQUIRED );
131
131
int result = mysql_options ( wrapper -> client , MYSQL_OPT_SSL_ENFORCE , & b );
You can’t perform that action at this time.
0 commit comments